It is only possible to recover deleted photos from iPhone from years ago if you have made a backup of those photos somewhere, like iCloud or iTunes. If you remember creating a backup of them, then you can easily recover deleted photos from that backup.