Importing dataset from old to new NAS

I have 2x 4TB dataset in mirror, and due to bad hardware choices, I might need to migrate things to a new NAS.

Is it possible to import the dataset into a new NAS?

Like install the disks physically in there of course and do some import dataset with the encryption key??

I crossed this old post: Migrate to New Hardware

But it seems confusing, even if I sync things between both NAS, there are risks and things could go terrible wrong.

I appreciate any help.