Answer:
The four-digit code you are referring to is called a Personal Identification Number (PIN). It is a code that you set after opening a debit account with your bank of choice. It is used as a layer of authentication when you perform an electronic transaction with your debit card or at an ATM.
There is another code on debit cards called the Card Security Code (CSC) or Card Verification Value (CVV). It is a three or four-digit number printed on the card, usually on the back of the card for Visa or Mastercard branded credit or debit cards. The code is used by online merchants to verify that the buyer has physical access to the card.