Yes, you can if you have:
1. A Retail Vista version
2. The original Vista install disc (or can borrow a suitable one)
3. The Vista Product key.
Before installing Vista, check that there are device drivers available for Vista, especially the motherboard. So if you tell us the XP PC's motherboard make & model number we can have a search for you & let you know. G