I bought a nokia N97 mini, and I have noticed that on some phone, when you press the button to unlock it, you can have an option so that you have to put in a code before you can use the phone.
Please do not get this mixed up with the PIN you put in when you turn the phone off, this is a code...