Hi
Yes
The only thing that can go wrong is if you have statements in the config-file that uses licensed features which you havent' license for in the new device.
Antoher issue could be if you had bridge-group commands in the config and load it onto a device that doesnt' support bridge-groups.
But that is not the case with the 2 models you have mentioned here.