Read this article My Photo Stream - Apple Support
The photos from My Photo Stream on your other devices aren't affected. Photos from My Photo Stream stay on the iCloud server for 30 days from the date you upload them to My Photo Stream. If you sign in to iCloud with the same Apple ID and turn on My Photo Stream on another device, the photos automatically download.
The photos that synced From iPhone / iPad to iCloud will also simultaneously synced with Mac when signed in with same Apple ID and password on the same network Use iCloud Photos to store photos in iCloud - Apple Support
Any new photos you add to Photos or take with an iOS device appear on all your devices that have iCloud Photos turned on. Your photos and albums are organised the same way on every device, and if you make edits or remove items, you see the changes on all your devices.