Can I make a game on Mac but release it to windows

I want to make a game on an iMac since those are more directed for work and production. But if I want to release it for Windows, can I. And when I finish it eventually can I send it to my PC to play it. Or would you just advise me to work with it on my PC if I’m already doing all this.