Yes, some keys had a piece with the code number on it that could be knocked out and stored in a safe place. All door locks I have seen have the code number stamped on them. I have seen a very few ignition cylinders with the code number.
"It's just a phase. He'll grow out of it." Mama, 1964