can iCloud free up space on my phone?

I am trying to prevent having to buy a phone with larger storage. Can I use iCloud to store data (pictures and videos) and be able to delete that data from my phone, while retaining access to the iCloud data?
I cannot remember it, but yes.
Although the easiest way, as far as I'm concerned, is with Google Photos.

Original thread: https://forums.imore.com/threads/can-icloud-free-up-space-on-my-phone.373615/