The key may be valid, but is it yours?
You can install XP even with a wrong key. As long as you register with M$ within 30 or 60 days, you are fine.
An XP-key is independent of the CD, so yes, you can use any XP-cd of the same home or pro version as your key is for.