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

The boxer was a magnificent fighting machine.

The war machine.
different meanings