Yes, morals are basically the DNA of cultures, morals today exist only because they benefited the survival of the citizens, either directly or indirectly, at some point in the history of the culture. However, the problem with morals is that generally they are long term survival mechanisms, its generally not easy to see their immediate benefit, or prove their worth (abstinence for instance), so religions are born or modified to enforce them (without requiring any proof of their benefit, just the motto if you do it you will go to hell), a clever strategy for cultural survival, I have to admit.