So the law could properly penalize or forbid gluttony, disrespect for one's parents, or expressions of bigotry?
That’s right. Law is based on a system of morals.
No. While it's true to an extent the Law is based on morals, these Laws are outlined in Commandments 6-10. These are horizontal Laws, or laws between Man and Men. Murder, theft, perjury, etc. are transgressions against other people and are justifiably called 'crimes' by Man.
The first 5 Commandments are vertical Laws, or Laws between God and Man. Idolatry, blasphemy, etc. are punishable only by God. They fall within your Right of Conscience whether to adhere to them or not.
-----
The duties of men are summarily comprised in the Ten Commandments, consisting of two tables; one comprehending the duties which we owe immediately to God-the other, the duties we owe to our fellow men.
Noah Webster, The History of the United States (New Haven: Durrie and Peck, 1832), pp. 336-337, 49]