The license agreement states that an OEM copy is tied to the original computer, however you can do as many upgrades and repairs as you like, you just can't transfer it to a new machine.
I had occasions when an old motherboard has died and since you could no longer get anything that crap I've had to change the motherboard, RAM, CPU, PSU and GPU, but technically it's still the same machine, it's just "repaired".