Jim, I have just changed from an M1 Mac to an M4 Mac. there can only be one location on you computer that iCloud uses for photos, although you can have multiple libraries, iCloud will only use one. You can however merge libraries. I think this video explains it better than I could.?
hope this helps?