When it comes to matters of law, are arguments for deterrence distinct from

Read another response by Thomas Pogge
Read another response about Law, Punishment
When it comes to matters of law, are arguments for deterrence distinct from arguments about morality? Are practical concerns separate from moral judgment? It seems one thing to say "we should outlaw murder so as to prevent murder" and another to say "we should outlaw murder because it is wrong". -ace