As long as they are the same model the parts should theoretically work together. The factory lock and serial number are probably tied to the logic board.
open