Does word "rub" have the same meaning in the following two sentences?

Rub my hands.

The cat rubbed itself against my leg.
the same meaning