Yes. A ship stays afloat because it weighs less than the water displaced by its hull.
Yes, I know, the key word is displaced.
It’s the air in the ship that weighs less.
Yeah. The metal parts are heavier than the water, but the air parts more than compensate. :-P