Yes, you may install Windows XP and Windows 7 side by side, but in that case you will need to:
- Partition your disk on 2 partitions
- Install Windows XP on one partition and Windows 7 on another one.
- Windows 7 will install dual boot and you will need to install XP first.
- Make sure to choose fresh installation when installing Windows 7, and not upgrade