Installation or Backup?

If i have HA on a Raspberry Pi 4, and i have a 2nd Pi running the latest Pi OS, can i take the sd card out of HA, copy it onto the other Pi, then paste it onto a new blank SD card? Or do I have to create a back up and do a restore?