That’s only if the people writing the law have a moral compass of one sort (religious or not).
If I become ruler and write the law so that helping the poor is criminal, the only solution to a person unable to pay their debt is death, and that only people of a certain demographic are allowed to use front doors to establishments I don’t think you’d say that the law is a closer shot to morality than religious doctrine.
That’s only if the people writing the law have a moral compass of one sort (religious or not).
If I become ruler and write the law so that helping the poor is criminal, the only solution to a person unable to pay their debt is death, and that only people of a certain demographic are allowed to use front doors to establishments I don’t think you’d say that the law is a closer shot to morality than religious doctrine.