Was Poseidon based on a true story?

No.
Poseidon [2006] & its original The Poseidon Adventure [1972] were based on a book written by Paul Gallico in 1969.