Yes, that’s acceptable.
Version control is intended for version control; no backup. You should have something separate place to work with backup copies of the compiled code, which, perhaps, really appeal to the version control system.
In any case, forcing the developer to wait for code verification is an upcoming disaster of the lost code at some point .