Yes. Nuki does not automatically delete Keypad codes. It’s highly recommended to delete any invalid codes from the system (the fewer codes are stored, the more reactive everything is).
You will get an error if you try to create a code that already exists. But be aware that the Nuki API is mostly async. Make sure to read the documentation linked here. It contains further informations you should be aware of when creating a Keypad code.