Answer:
Yes. A magnetic compass is. It relies on a magnetic needle (or a group of needles under a card) to interact with the earths own magnetism.
There are other kinds of compass, such as a gyro compass and a GPS compass, which are not deliberately magnetic and do not work on the magnetic principle.