Validation without an explicit confirmation

I am currently working on an app. This app has some features that the user can unlock by entering a numeric code. I was considering putting an automatic validation as soon as the user types the last number of the code.

I see this pattern more and more but I was wondering if validating without having an explicit input by the user, for example by clicking on a continue button, has some usability/user experience related problems.