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

Teenagers follow their friends in everything.

Follow these simple rules.
different meanings