of course, it just depends how (which axis) you mount it on.
For example, you will measure tilt (front to rear) if you align the sensor parallel to the body frame (long ways - front to back).
you'll measure tilt (or side tilt) if you place it perpendicular.