Leading zeros - As in a PIN number

I’ve got a PIN (personal identification number) field that I created as ‘integer’ type. When I put in a number with leading zeros—ie ‘0123’—it strips the leading zero. Is there a way to have the system not do that, or should I just create a new field that is ‘single line text’ and the problem almost certainly would go away?

Yes, please use the single-line text type.