Hi, your question isn't clear.
If you have installed Win 7 on your current HDD, and you want install the same disk on your new rig, yes is legal IF THE WIN 7 IS LEGAL, but, bear in mind that you need re-install the windows, 'cause the driver of your current PC al new PC aren't the same.