Does "follow" mean the same thing in these two sentences?

Follow the trail.

Follow a pattern.
different meanings