Is analogWrite necessary to turn off DC motor?

Hi,

I am writing some code to run and then turn off two DC motors. But i am unsure if i need to set the analogWrite value to 0, so which one is correct?

void TurnOFFA(){
  digitalWrite(in1, LOW);
  digitalWrite(in2, LOW);
  analogWrite(ConA,0);
}

Or

void TurnOFFA(){
  digitalWrite(in1, LOW);
  digitalWrite(in2, LOW);
}

Does it matter if i omit the "analogWrite(ConA,0)"?

Need more information.

How are you driving the motors? Which outputs and what are they driving?

What are the variables in1, in2, and ConA?

dl324:
Need more information.

How are you driving the motors? Which outputs and what are they driving?

What are the variables in1, in2, and ConA?

I'm using the TB6612FNG motor driver: Pololu - TB6612FNG Dual Motor Driver Carrier

Arduino connected to AIN1, AIN2 and PWMA to control one motor, with the motor leads connected to AO1 and AO2.

Variables:
in1 is AIN1
in2 is AN2
ConA is PWMA