Having a Mac means you can run Windows and Mac OS X either via a VM or booting directly into either OS when switching on the Mac. A feature built into OS X is called Boot Camp.
Windowsreport.com has a great article which guides the user through setting this up with Windows 11 and Mac OS X and makes it ideal for users with a need to run either OS. Otherwise, if a user wishes to run Windows ‘from within’ a Mac then a VM (virtual machine) will be the way to go.