Phone basics
Often yes. When you delete a photo, it is not really gone — it sits in a holding folder in case you change your mind: 30 days in Recently Deleted on iPhone, 60 days in the Trash in Google Photos (for photos that were backed up). After that, it is permanently gone.
iPhoneOpen the Photos app. Look for Collections, then scroll to Utilities and tap Recently Deleted. (You may need to unlock it with your passcode.) Tap the photo — or tap Select to pick several photos — then tap Recover.
Android / Google PhotosOpen the Google Photos app, tap Library, then Trash. Tap the photo — or press and hold to pick it — then tap Restore.