Short answer
No. The GPS in a phone or handheld unit does not work underwater. Satellite signals cannot reach a diver below the surface, so there is no satellite fix. Some specialized positioning systems do exist for underwater work, but they use sound rather than satellite signals, and they are mainly used by engineers and research crews.
Why satellite signals do not reach underwater
GPS uses radio signals from satellites. Water absorbs radio energy quickly, and seawater is especially good at blocking it. The signals fade within a short distance of the surface, so a diver below that depth receives nothing useful.
Sound behaves differently. It travels much farther through water than radio does, which is why underwater systems rely on it.
Acoustic positioning systems
Acoustic positioning uses sound pings to work out where a submerged vehicle or diver is. Systems such as ultra-short baseline (USBL) and long baseline (LBL) arrays are used by ships and by remotely operated and autonomous underwater vehicles. A surface vessel or buoy, which knows its own GPS position, can calculate the position of the submerged target from the sound signals.
Inertial navigation systems
An inertial navigation system tracks movement with sensors, starting from a known position. It does not need an outside signal, but small errors build up over time, so it usually needs to be corrected by another reference. Submarines and some underwater vehicles use this type of system.
What recreational divers use instead
Recreational divers do not have underwater GPS. They rely on a dive compass, kick counts, timed swims, natural features and sometimes a reference line. A dive computer shows depth, time and gas, and some models include a compass.
Without satellites, the method divers depend on most is the dead reckoning navigation technique. They estimate their route from heading, speed and time, and they check it against features whenever they can. A boat’s GPS still helps: it can mark the entry and exit points on the surface, so the diver knows where the dive site is.