Yes you will be fine as long as backed up with Google. A bit about Samsung Gallery (now integrating with One Drive) and Google photos here https://www.cbackup.com/articles/google-photos-vs-samsung-gallery-6688.html
I do not work for Samsung or make Samsung Products but provide independent advice and valuable contributions.
My Device- S21 Ultra 5G ( SM-998B/DS ) CSC= BTU , 12GB/256GB
One Ui 5.0,Android 13 .