That's such a horrible expectation. Do we expect children to spell correctly right off the bat? Or do we teach them, slowly & patiently, instead? Or are you saying we should just let autocorrect be their guide?
No? Then why would programming languages be different. It's part of the learning process. And it's by far one of the easier parts.