Can I set PIN code on a locked SIM card?

Yes, you can.

When the SIM card is locked, you can set the PIN directly from the transmitter UI.

This setting is persistent, meaning that when turning on the transmitter next time, you do not need to achieve this operation again.