Is water used to mean the same thing in the next two sentences?

They were sitting by the water's edge.

They invaded our territorial waters.
the same meaning