Yeah, it doesnt matter as long as you are using locknuts…
But yes the theory goes that if you put CCW nuts on a CW motor, the natural torque tightens the nut so its unlikely to come loose. But this gets annoying so if you just use locknuts then its not a problem