Yes.
However the exact implementation will depend on how the spindle forward/reverse is controlled.