Yes. Make sure both source and destination are the same macOS version. I use 27.0.1, you could upgrade to 27.2 first though.
Then do a fresh install on your new system and then use Migration Assistant. Use a USB-4 or a Thunderbolt cable to speed it up.