The vast majority of small boats have through hole fittings for things like the heads (toilet) or cooling water intake for the engine. Opening the valve and smashing the pipe off is a trivial way to sink the boat. Larger ships will have similar fittings though the sinking will take longer. As noted by your others there's ways to intentionally flood a submarine too even if they're not intended for that purpose.