It does as I use it all the time, I have a PIN and when I unlock my phone or Surface I use the four digit PIN code instead of my full password.
Having a PIN doesn't lock your phone, that us dependant on the time you have set on your phone to have it lock or if you restart it.
But the bottom line is the PIN is what you want as a four digit password replacement to unlock your phone