IS IT POSSIBLE TO RESTORE IPHONE AND NOT LOSE PICS?

I WANT TO KEEP MY PICS BUT DON't WANNA PLUG IT INTO MY COMPUTER I HAVEN't DONE IT FROM THE BEGINNING AND I WANT TO BUT THE THING IS I WANT MY PICS IS THIS POSSIBLE?

Just email all your pictures to yourself just in case, then restore it, and if they got deleated then go to your email and save them to your phone again

You can back up your pictures on iCloud. This can be done over Wi-Fi when the phone is on charge and is not being used. Once you have backed up your files this way, you can restore your phone and later sync with iCloud to retrieve your files.

You can also sign on to www.icloud.com and look at what you have backed up.