yes as long as you keep the same motherboard.
its bound to a type of motherboard generally down to the model and revision but in some cases it will accept very similar motherboards.
you can upgrade any other hardware and it will still work. so a cpu upgrade or a better hard drive is acceptable.
retail works the same way but you can call up microsoft and change the motherboard 5 times.