I can't really imagine that working very well when coding. It'd cause huge issues with autocomplete and autoindent.
In the writing discipline, people will often tell you to write a first draft without correcting errors, then go back and error-correct on the second draft. But that's not about typing errors, but rather grammatic/narrative errors in your writing.