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

Tap beer in a bar.

Tap an M3 thread all the way through the hole.
different meanings