Does the word "beat" have the same definition in the next two sentences?

The drums beat all night.

Beat the table with his shoe.
different meanings