a new, virgin , never connected engine ecu will read and store the relevant data from the bodycomputer and thus making it useless for use in another car from that moment on.
Then it will start self learning and store parameters in short- and long term memory without needing any coding as far as i know.
A used ecu can only be used when it is made virgin by a specialist first, otherwise it won't work in your car.