You can't link some pins together and have one mcu copy to another (unless the firmware was written to do that.)
However, as said above, if there's no protection enabled you can "download" the firmware from one mcu to a PC and then "upload" it from the PC onto another mcu.
MCUs in purchased products will almost certainly have the protection enabled to stop other companies copying their firmware and quickly selling a competing product. (Since a significant percentage of the development cost in a product is writing the code)
Note: You may have to copy both the firmware and the eeprom for the new chip to work the same as the original.