Legislating morality doesn't work, case in point countries like Iran and Pakistan, their governments try to do that and the people there are all fucking goats and looking up camel porn.
Morality shouldn't need to be legislated. Morality, individual morality is an internal control on one's behavior. We are becoming an amoral culture. Not immoral, amoral. The more amoral a culture is the less internal controls and the more legislation is necessary to maintain order.
That's why there is a law prohibiting someone with AIDS having sex with an uninformed partner. There is no internal control telling an infected person that spreading AIDS is wrong. They are intent on obtaining their own pleasure no matter what the cost to someone else. So, there needs to be a law.