To Jake's point, if it's an Intel based Mac, then you can use Boot Camp to partition a portion of the drive for Windows and once installed it's a true Windows installation, so the games should be fine.
Be aware, that any game that makes specifics demands of graphic cards (usually high end) will not work in the ultra high resolutions, but lower.
If your primary purpose of installing Windows is for gaming, then Boot Camp is the only true way. You would reboot the machine on each reboot choose to boot into Windows or macOS.
If you purchase an Apple Silicon based Mac, disregard everything I just said since it's doesn't apply.
But, if gaming is your goal, I would highly recommend a gaming PC as opposed to using a Mac to serve both purposes. The Mac will do fine with all casual and some high end games, but you'll find the gaming PC is cheaper and easier to run.