No, the SIM PIN is linked to the SIM and not the iPhone.
You can enable, disable, or change your SIM PIN in the following locations:
- iPhone: Settings > Phone > SIM PIN
- iPad (Wi-Fi + Cellular models): Settings > Cellular Data > SIM PIN
Note: Some carriers provide SIM cards with a default SIM PIN already enabled. Contact your carrier to find out what your default SIM PIN code is.
copied from iOS: Understanding the SIM PIN