Okay, so (to use your example) "generous" genes triumph over "selfish" genes in the long run, so more people are born with an inclination to share food with their offspring. In the same way, then, our shared concepts of right and wrong are the result of this sort of natural selection; what gets genes passed on stays, what doesn't, doesn't. Have I understood what you're saying?