you can do that, but not recommended. If you want to run XP, you can use the built in windows XP mode from windows 7.
Caution : If you try to install windows XP on windows 7, you will loose your windows 7. Then you will have to manually fix it (using BCDedit commands.)