Do we have to go to Mars the way depicted in "The Martian" to succeed in going to Mars?

No. Andy Weir’s “The Martian” was science fiction. It was a possibility, but not a reality at present. Don’t confuse science fiction with reality.
We shouldn’t go to Mars (in my opinion) but we are going anyway. That being said, we have to wait and see how it plays out in reality, not in sci-fi.

lighted hollywood signage during daytime
Photo by Pixabay on Pexels.com