You can recover photos for 30 days
Deleted photos go to the Recently Deleted album. Apple keeps them there for 30 days, then deletes them permanently. To get one back, open Recently Deleted under Utilities in Photos, unlock it with Face ID or Touch ID, select the photo and choose Recover.

