WTF ??
Yes. A ship stays afloat because it weighs less than the water displaced by its hull.
Pockets of air built into ships keep them from sinking because they make the ship weigh less than water.