Question: are laws based on morals?
Answer: Law, by its nature, is an institution with a moral task to perform. Law, by its nature, is a morally valuable institution. The first, claiming no more than that the law can be used for moral ends, seems unexceptional. Just about anything can be used for moral ends.