A friend argued that before religion, humans were savages with no morals.

I didn't know how to respond except for saying that I was highly critical of that, but I don't know enough about it. Maybe some of you can clear things up?

I believe we don't need religion to derive a moral code from, did our ancestors?