Infinite Lock Puzzle - Answer
Answer is no.
There's no guarantee that you'll enter the correct passcode.
Different types of infinity exist—in this case, the solution space (possible passcodes) is uncountably infinite, whereas the attempt space (sequential attempts) is countably infinite.
Countable attempts cannot exhaust an uncountable solution space.