DIY L298n motor controller - need a little help

ok so your saying to use a non pwm pin for example input 1 and 2 (lets say pins 1 and 2 from the Arduino for the direction change) say 0 1 for left and 1 0 for right and then use the enable pin with PWM for the speed?

I mean It doesnt bother me too much to leave it as originally intended but if its going to make code easier then that's a plus