Is the movie john carter based on a marvel comic?

No, it is based on an old, classic novel by Edgar Rice Burroughs.