Yes it did. Long before humans wrote laws or argued philosophy, animals were already cooperating, forming alliances, and sharing resources. You’ve seen packs of animals react to threats. In primates especially, we see behaviors that look like early building blocks of morality. Not what we call human morality, but that indicates that morality has roots reaching deep into our evolutionary past.
Evolution gave us impulses that helped our ancestors survive, but survival instincts are always the best choice today. Anger can protect you, loyalty can bind us together, and self-interest can keep you alive, but each can also push too far.
As humans became increasingly social, we survived by cooperating, raising children together, sharing food, remembering who helped and who cheated, and depending on others for protection and knowledge. A group filled too many selfish individuals falls. So evolution favored empathy, guilt, trust, fairness, reputation, and the ability to punish people who repeatedly harmed the group. Somewhere along this path, our ancestors also became increasingly capable of thinking about their own behavior. We did not merely cooperate; we began judging whether we should cooperate. That was the great leap toward personal morality.
That is where taking control matters. Notice the impulse, think, listen to group guidance, and then choose with good intent. Morality today is neither purely biological nor purely invented. Evolution gave us the machinery; culture spent thousands of years reprogramming it. You are the moral agent. Your biology gets a vote, but it does not get the final decision. Watch what happens, watch the result, and adjust. Turn your inherited nature into a life lived with purpose.