Does word "connection" have the same meaning in the following two sentences?

There was a connection via the internet.

The connection between overeating and obesity.
different meanings