Actually no. Religion strongly speaks against many things that are considered anathema to civilization; but does not prevent people from doing whatever they are going to do. It is law and the enforcement of law that actually functions to prohibit; but even then, only usually after the fact.