Word I agree with what you say. Of course, on your death bed, with those last few thoughts you will think of the people you loved, but that doesn't meant this is incompatible with doing a really good job (hopefully one you find socially or personally meaningful).
I also find the idea of your children as your achievements, as the product of your investment, and not a lot else rather disturbing. So many times, I have seen children who had loving homes, ever present parents, emotional and material needs met, go off the rails, get with the wrong guy, take drugs, fail to find a goal and just drift, have mental health problems, even commit suicide. You cannot insulate your children from all the challenges that they are going to face, or the fact that they may not turn out as these perfect great job lovely family people at all, but may just turn out to be normal, indeed perhaps troubled human beings. This is not all down to the parents, semetimes, despite everyone's best efforts, it all goes wrong. Equally, if your children turn out to have a conventionally good life, you need to be generous to acknowledge it is not all down to you either.
It's easy to be pleased with the achievements of a 7 year old, and imagine them all down to you and your great parenting. I think this is a dangerous road to tread.