Using an optical rotary encoder to move a stepper motor

Sure. After the first pulse, count up the pulses to what ever number you want. If the count is NOT what you want, DON'T move the stepper. When the count reaches your magic number, reset the count and let the stepper move.

Paul