Can I make game on Mac but release on PC

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.