Totally incorrect. Its generally accepted that legality and morality are not coextensive, but that's different than legality and morality being orthogonal. Legality and morality are closely correlated, in that societies tend to make illegal actions they consider immoral. Thus, while it's possible for something to be illegal that society does not consider immoral, it's generally not the case.