Nope. Doing a syntax error in a programming language is the equivalent of filing the wrong form or filing the form incorrectly. Like if the question was “Suspect Height” and you put “green”.
Indentation rule are about scoping, You need a delimiter to mark end of a statements, and quoting often have to do with value type and interpolation. They’re not merely visual markers. Messing them up is the equivalent of answering “400 miles” when asked “what’s the color of the sky?”.
ADDENDUM: Yep writing code is filing a form. And just like any form, it’s easy to validate basic errors like syntax and type of values. The hard thing is to validate what happens after the form is processed. i.e, the intent of filing that specific form.