compass wont stop you from going the wrong way, you need a map to get a point of reference and a destination. If it's a trail hike, you won't need either, but judging by your other question, you need a GPS or a map and compass. And the skill to use them.