So is this where most morals arrive from, just a meaningless result of natural selection that favors survival of the species?
It would depend upon how you define "meaning." If this term is synonymous with "function" or "advantage," then the evolutionary function or advantage of morality is that helps ensure the survival of the group or population, which is significant because it is a breeding population that can have lasting and longterm effects on the evolution of a species.
For instance, populations of early hominids 2 - 4 million years ago (Ma) may have existed where some developed habits of cooperative foraging and sharing of resources. The groups that developed culturally in this way survived, passing their genes to the next generation. The groups that weren't as successful (perhaps there were fewer members of the population that had genes that inspired cooperative behavior) may have perished.
Add to this a result of better food (cooperative behaviors can help these early hominids scavenge meat from other carnivores -several gather limbs and heads -several stand guard), more proteins and essential amino acids, and, thus, increased encephalization. The morphological changes in the skull shape are evident in the fossil record, as are some of the endocranial features that indicate changes in lobes and cortices, so it follows that added cognitive functions result.
The increases in brain sizes (and, more importantly, the encephalization quotient) along with added cognitive functions (which we know occurred from the material records alone), and it follows that successful cognitive strategies would dominate unsuccessful ones since the latter would be selected against unless they had no net effect on survival to the point of one's offspring being able to reproduce.
Morality is a selective advantage and a function of hominid evolution. Hominids cared for other members of their group; they established trade with neighboring groups (populations); etc.
If, however, you intend the word "meaning" refer to some outside purpose or design, then this clearly has nothing to do with biology at all and is meaningless in context here. So I think we can proceed as if you intended the former.