A better question: If something is legal and generally socially accepted and tolerated, does that make it moral?
Can a society legislate morality? Can a society criminalize private individual revulsion to sodomy?