You can certainly install older operating systems onto computers. Though given how soon Microsoft is dropping support I can't say that is a good idea for your only OS.
Dual boot is an option, which would require partitioning your hard drive. Or running Windows XP in a virtual machine, such as virtual box.