Hard drive swap out

I have an old 250GB SATA model WD2500JS-60NCB1 hard drive which has failed from a Compaq Presario. I have a  couple of WD2500JS-75NCB3 drives that are good in the house. Can I install these instead of buying the exact one I am replacing. The OS is Windows Vista that is on the recovery disk and I also have a good license of XP SP2.

Look forward to anyone advice.

If it’s not in Raid then I don’t see any problems.