Recording the steps the robot has taken.

Could something like Electronic Compass Module Three Axis Magneto Resistive Sensor help correct turns and wheel slippage?