Yes, use of linear encoders is possible - see for example LinuxCNC.