It is quite possible to be nonreligious but highly moral. But if you followed the exact wording of the Bible, you could sell your uppity daughter into slavery (Exodus 21:7).
The evolution of moral behaviors goes hand in hand with the evolution of sociality. Social complexity builds moral complexity. And we are one very social species.