Yes, sonar is used underwater. It is used to detect and track underwater objects, and to measure water depth.