Yes.
Explanation:
If the water is shallow, sound waves will reflect off the bottom of the ocean and will return faster than in deep sea. But in deeper water, the sound waves will take longer to travel to the bottom and return. Ships and submarines also use sonar to navigate at sea.