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

Beat one's foot rhythmically.

I beat the traffic.
different meanings