Does the word "leak" have the same definition in the next two sentences?

A leak in a gas pipe.

A leak in a boat.
the same meaning