Back up your card and give it a try. It’ll probably work just fine since both are RPi 4s so the only real difference I’m aware of is the amount of RAM. But always back up first just in case.
If you don’t have an answer to that question then stop now and start doing a little bit of looking to develop a backup and restore process that makes sense for you. You should not run any service like openHAB without a defined and tested backup and restore procedure, especially if you are only one power failure away from your entire SD card becoming corrupted.
There are tons and tons of threads on this forum and the internet at wide. Amanda is built into the openHABian image. Some people clone the SD cards. Some use stuff like Ansible to set up and configure machines so only the data itself needs to be backed up.
As Rich answered, take your turn to develop your backup process now.
As you have openHABian, there’s the auto backup feature and Amanda backup system available so read up on those.