Yes. All aircraft have a compass, along with a gyrosocopic
horizontal direction indicator. the gyroscope stays still in
relation the the earth, and so when the aircraft turns, the
gyroscope stays still and the heading is read. This is set by the
compas.