By the way, please get into the habit of making backups of your new computer.
It sounds like you did not do that with the 2009 Mac – so now, saving your photos may be "touch and go". On any current Mac, if the computer dies, there is basically no chance of saving any data on the internal SSD. Most Apple Silicon Macs have their SSDs soldered in, and all Apple Silicon Macs encrypt the contents of those SSDs with keys that are held within the Apple Silicon processor.
You must back up your new Mac before catastrophe happens if you want any realistic chance of getting anything back.