There's something to that, but it doesn't explain menopause in women. If reproduction is the end-all-be-all, why not evolve the ability to reproduce throughout the natural lifespan. See the Grandmother Hypothesis for a possible explanation: https://en.wikipedia.org/wiki/Grandmother_hypothesis