Did warfare among ancestral hunter-gatherers affect the evolution of human social behaviors?

Did warfare among ancestral hunter-gatherers affect the evolution of human social behaviors?