Only if you either knew the area fairly well, or knew which compass direction you walked when you went into the bush. In either case, you'd know which compass direction to take to get out. Otherwise, the compass becomes a tool for keeping you going in a straight line. Might go towards the truck, might lead you to a road ten miles away, or a lake, or whatever.
Don't get me wrong, a compass is your best friend, but it needs a little prep work from you, for it to be best used.
Sometimes I ask the new guys when I take them into the bush. "Now, what direction do we go to get out?"
At least 90% have no clue. They expect magic from the compass, or GPS IF they have remembered it.