Was the movie Titanic based on a true story?

Yes.