There are a few things to check.
- Automatically backup data & settings. https://support.google.com/android/answer/2819582?hl=en
- Setup Google Photo App https://support.google.com/photos/answer/6193313?co=GENIE.Platform%3DAndroid&oco=1
- Also setup the ability to reset the phone’s pin if you forgot it. Turn on the fooling 2 things: A) phone’s Find My Device feature, b) Allow remote lock and erase feature. (In the future if you forgot your pin you can go here google.com/android/find and follow the steps here https://thedroidguy.com/how-to-unlock-samsung-galaxy-note-9-with-forgotten-pin-1094213
- Also if you have a Samsung phone, they have their own way of resetting your pin if you forgot it. Setup Find My Mobile at samsung. https://www.samsung.com/global/galaxy/apps/find-my-mobil
This explains how to unlock phone when you forgot your pin https://thedroidguy.com/how-to-unlock-samsung-galaxy-note-9-with-forgotten-pin-1094213