Since both use the same size cooler, you can change them without any worries. Just make sure that there is a clean layer of thermal paste. If the thermal paste has been ruined (because you took the cooler off the previous CPU) then you should clean off the thermal paste (using either an alcohol or citrus based solution) and apply new thermal paste.