No, indentation marks blocks of code in Python. Statements in the same block must start at the same indentation level. Some statements (like if) must be followed by a new block of code (i.e. with higher indentation).[1] In addition the first line of code must not be indented.
if condition:
pass
pass
if condition2:
pass
else: # else branch of the first if statement
pass
pass # continuation of the top-level block of code
You should look into some tutorials. For example:
If they are not followed by just a single command on the same line. ↩︎