No, you cannot change the internal logic of cognito.
However, you can create your own logic to verify users.
You can create a pre signup lambda to send random 4 digit code to email of the newly created user (you can store the temporary code in custom user attribute which is hidden from user or in dynamodb table with userid for comparison later). Then create another lambda which has AdminUpdateUserAttributes privileges in the role. This lambda will get triggered by apigateway which will take the 4 digit code as input. Then compare this code to the one you stored earlier. If it matches, make the AdminUpdateUserAttributes call and mark the user verified.