Velocity using step/dir possible?

Hello,

i was wondering if it is possible to control the velocity of the motor using step/dir pulses.

thanks