Does "connection" mean the same thing in these two sentences?

My headache has no connection with me going out last night.

There was a connection via the internet.
different meanings