Yes you will get wrong readings with the car in motion.
If the vehicle was moving, no vibration, and at a constant velocity it would work.
Any minor change in velocity or movement would alter your readings.
Maybe you could use a gyroscope? That would measure rotation while moving. You would then convert the movement into an angle.