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

I've got to go to the head.

This song keeps going through my head.
different meanings