Yes, Android 12 has face-based auto-rotation which uses the front-facing camera to detect the orientation of your face and adjust the screen accordingly.