Moral codes are not enforced by mandate or fear of punishment, moral codes are beliefs about right and wrong that individuals hold. Laws are mandates that are enforced by fear of punishment, this is why laws are not dictating morals they are only setting rules in order regulate a society.
The fact that laws can be immoral or that certain immoral behaviors are legal, tells us that laws are not dictating morality.
The fact that laws can be immoral or that certain immoral behaviors are legal, tells us that laws are not dictating morality.