If suddenly, everything about the universe could be scientifically explained, would we still yearn for answers as to what it all means? Are we existential by nature? Existentialism doesn't automatically lead to questioning if there exists a higher power or not, but it often does.
Religion, for many, offers meaning to people's lives. It can contribute something essential to the human condition.
If science replaced religion, would we all somehow stop our storytelling? Would myths and legends cease to be believed, if we had all the answers to the universe, explained to us by science?
Can science replace religion?