Yes, you can dual boot Windows and MacOS, but it requires a special software called Boot Camp. Boot Camp allows you to install Windows on a separate partition on your Mac's hard drive, and then choose which operating system to boot into during startup.