If it is exactly the same there should be no problems. If there is motherboard change (different motherboard) then maybe a repair install of Windows would fix any issues.
There is a small change for data to get corrupted. I have done repair install many times and never had issues. Theoretically you can use any XP disk that has the same service pack installed but you need the code for the install you are repairing.