Is the word "swing" used in the same way in the following two sentences?

The party went with a swing.

He took a wild swing at my head.
different meanings