Head into Settings > Phone > SIM Pin. Toggle SIM Pin on. Note that you may need to contact your carrier to figure out what the default pin is if this is your first time setting this up. After entering ...
Protect yourself against SIM swapping and more security threats by setting up a SIM PIN right now.
It may be useful to change the PIN code of a newly purchased iPhone (if the PIN is set to 0000 by default for example) or for safety reasons to protect from fraudulent use of your phone in case of ...