It is not a true story. The movie is based on a novella from famed author Stephen King. The original title of the source material is Rita Hayworth and the Shawshank Redemption, referring to one of Andy Dufresne's posters.