Is hit used to mean the same thing in the next two sentences?

One boy hit the other.

I have to hit the MAC machine before the weekend starts.
different meanings