Quadrature encoder

I all ready use a worm gear mechanism with 1/40 ratio, but i need something more precise

Can a 9 dof imu do the job?