If you own the copyright then yes this is 100% legal.
There are already apps that are like this. They usually add a couple features to the paid release so that people feel like they are getting something extra for the money. The good ones will eventually move those features to the open release eventually. However, this incentivizes keeping part of the app closed source so that nobody can just rename and re-release the paid version.
It is 100% up to you for how to handle these tradeoffs. Personally, I think so long as you are principled and ready for some criticism - and can handle it gracefully - getting paid for work that builds your open source app is a very good idea. We don't all have the luxury of maintaining high quality unpaid side projects!