You should not do that if your Windows XP is OEM (pre-installed in the laptop) but if you will not use the laptop anymore or will not use XP in the said laptop, you might want to check the EULA of the laptop vendor. AFAIK, it is not tranferrable.
Why not reinstall or repair XP in your laptop if it's corrupted? have you scan using system file checker?