As long as the machine is old enough that all device drivers are available, you can install it.
The problems are that XP will only read add-on drivers from a floppy disc drive, and that some drivers simply do not exists for the latest motherboard chipsets.
With patience you can get around the floppy disc restriction by either using nlite to rebuild the install disc with the required drivers included, or just use a USB floppy drive, with some machines.
There is no way around the lack of drivers for such as the very latest Intel chipsets; they simply do not exist.
You can still install it, but you need to use a virtual machine. I use XP for some things, as that is the only (or rather newest) version of Windows specialists software for programming various types of industrial machinery.
On my latest laptop direct installation is impossible due to the lack of drivers, so I've installed Centos linux on that drive and created a couple of XP virtual machines.
It works fine line that, installing and updating perfectly.