Yup, should use the same principle, although in a car with the vibration i would suspect you would be better off using a Hal effect sensor, but then you would also need an opto amp of some sorts?