There are those people, past and present, who have insisted that humans need religion to keep people on a solid moral footing.
Some of those people insist that science displacing religion has NOT been good for morals.
This is a space into which Michael Shermer jumps, with his book The Moral Arc: How Science and Reason Lead Humanity toward Truth, Justice, and Freedom.
In the book, Shermer argues that the scientific quest for information has made people and society more moral.