Yes; smoking weed. Jaywalking. Drinking during prohibition.
A crime is what the law says will be punished, but the law isn’t moral.
That has nothing to do with public perception which has everything to do with stigmatization.
The fact that you listed things that have historically been highly stigmatised because of the law is bizarre.
(Except jaywalking, not sure where that one is coming from)
Jay walking was originally a derogatory term for rural people in the ‘big city’ and supposedly not knowing how to navigate paved streets.
Yeah I guess I’m picturing people walking head on into traffic whereas it can also include simply crossing an empty street.
Where I live the latter is fine but the former is illegal.
The law usually reflects what people think is moral. Not all people of course, but a critical mass. Smoking weed is still widely considered immoral. Drinking was considered immoral by a lot of people when Prohibition started, and it still is by a smaller but still substantial number of people.
Jaywalking is more complicated, because there was a deliberate campaign to stigmatize it. I can’t recall if it was made a crime to promote the stigma or in response to it, but a sigma was definitely involved.