if i use analogWrite function to write a pin (non pwm) to low,
Why use analogWrite to a non-pwm pin at all?
Write the pin LOW and set it to OUTPUT.
And here's the fun part. You can switch modes and states in no time flat on the same pin. It's not set in stone, it's made to be versatile and fast.
Some of the neatest code does that. There's a sketch that uses 2 pins, 1 led and 1 resistor to read the ambient light level with the led then change to pulse the led to make light at controlled brightness so it's not too bright or too dim.. many times a second. Just to read light with a led uses mode and state switching.