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

To lash something to a spar.

The lion lashed its tail.
different meanings