Is it really the case that our laws

Laws and customs having the effect of law in our days can be traced directly to some powerful organized church or churches? That even in the US where they have an amendment separating church and state, the churches managed to have placed on the statutes the individual church’s code of moral taboos.

In his novel, For us, the living, Robert Heinlein writes and I quote

All forms of organized religion are alike in certain social respects. Each claims to be the sole custodian of the essential truth. Each claims to speak with final authority on all ethical questions. And every church has requested, demanded, or ordered the state to enforce its particular system of taboos. No church ever withdraws its claims to control absolutely by divine right the moral life of the citizens.

Robert A. Heinlein, For us, the Living

Such laws include but are not limited to tax exemption for church property, practically all laws pertaining to marriage and the relations between the sexes (laws against polygamy, adultery, birth control and others), censorship laws, laws prohibiting alocohol use, cigarettes.

In his book Genealogy of morals, Nietzsche makes the same argument and calls for a re-evaluation of morals. The difficulty I see is that after a while, these laws begin to have the form of common sense and thus their religious beginnings become obscured.

Do you agree or am i missing something?