Yes, there is a possibility to get back your lost data after factory reset because many times even after doing factory reset, some data still remains in the device itself and this can allow you to restore your deleted photos from your phone.
You should use a recovery tool like a software that will help you to get back lost data or photos from phone after doing factory reset.
https://android-ios-data-recovery.com/recov...-reset-android/
Restore photos after phone format