Yes, it’s possible to undo a deletion of a photo on your iPhone. But it will work only if the deleted photo hasn’t been yet removed from the Recently Deleted folder in the Photos app. To get recently deleted photos on iPhone, follow these steps:
Go to Photos > Albums > Recently Deleted.
Choose Select and tap the photo you wish to recover.
Tap Recover to place the photo back to the Photos app.