Anyway, as for the question, no. If a law is in the books then it should be enforced. If it shouldn't be enforced, then it should be repealed.
Now, on the other hand, I have no issue enacting laws that are morally sound but whose efficacy would be limited.
An example of non-enforceable law to an extent, may be marijuana, the drug, at least in my opinion should be illegal, and criminalised, but there should be no punishment for those who consume it, apart from confiscation, and maybe a fine, if caught, for the drug dealer and the drug user, they should be helped with rehabilitation.
I still stand by my statement, that adultery should be against the law, probably enforced, in a divorce scenario maybe in the court of law, and I used not enforce, which is sort of true but not also ture.