A sperm whale definitely could swallow a man; there was an instance in 1955 of a 405-pound giant squid carcass being recovered intact from a sperm whale’s stomach. The story of James Bartley, who supposedly survived being swallowed by a sperm whale in 1891, is most likely untrue, though.
Yes. A Sperm whale could. But not a Humpback.