The argument that the legality and ethically of actions are orthogonal is very strong and generally accepted.
Or stated differently, the illegality of act has no bearing on it's ethical or moral status.
Or stated differently, the illegality of act has no bearing on it's ethical or moral status.
Similarly, things with very high risk of long term negative effects to the society or the individual are made illegal due to the risk and not due to the immorality of the event itself, such as our drug laws.
Re: drug laws, people do consider drug use and dealing to be immoral.