If you briefly look at the title of many posts on this forum, there is a common theme of "I forgot my passcode". When that happens, the user must erase the phone and set it up again. That is a scary thing for most users, especially those who find out too late that they did not make a backup of the data on the phone, so they lose everything.
If anything that you do requires a passcode / password.......write that phrase down exactly and keep it in a safe place in your desk or other location.
Back up the iPhone regularly. ICloud allows you to back up automatically overnight each night.....a very nice option. Not backing up is somewhat like not fastening the seat belts in your car. You are OK until you actually need the seat belts, but by that time......it's too late.