No, the shopkeeper codes are for some other set of codes, if you want to get your passport and whatnot from TamaTown, You have to go to "Passwords" located under "Shop".
When you're there, press the middle button so that 10 zeros come up. Suppose your passport code is 43293 23419(it isn't this password, of course), then you must:
-press the left button 4 times to get the number 4
-press the middle button to confirm that number
-repeat the steps for the other numbers until you get to the end of the 10 numbers and press the middle button
-if you made a mistake on a number, press the right key and it will go back one number so you can fix it