It will work across models with two gotchas:
1. You would need to paste in licenses for the new controller right after you type restore flash. You cannot type write mem before rebooting.
2. You must login to the controller VIA the console and fix the interface configuration right after reboot.
Making it a local and then a master is far easier.