Yes, you can do that, but you need a DC servo controller, like a Gecko G320/340 to operate it. There are folks on here who are running their mills using the ubiquitous DC treadmill motors as servos, by simply adding a digital quadrature encoder, and running it with a Gecko. It may not be quite as good as a real servo motor, but is plenty good enough for hobby use.
Regards,
Ray L.