It depends on the level of repair done to the handset. If the main board can not be repaired and will need to be replaced, the new main board will have an IMEI number separate from the one sent in for warranty repair and a new unlock code would be required. If the main board is not replaced normally the phone will stay unlocked, in the event it is not, then the customer can use the original unlock code that was purchased for reuse..