Can you install xp after Linux in a computer on the same hard drive?

Yes, you can. But no in the same logical partition. But it's not easy, because you will have to edit boot.ini file manually which is not trivial. It's better to install Xp and then Linux.