Yes—and it happens. In jurisdictions where depicting illegal drug use in media is a criminal offense, artists can be fined, arrested, or sentenced to probation. A high-profile example: Lil Pump in 2019 was arrested and charged after posting a video showing marijuana use, ultimately receiving probation.
Beyond legal penalties, the fallout often includes negative publicity, brand partnership losses, and algorithmic suppression on platforms that enforce community guidelines against drug-related content. Even in regions where cannabis is decriminalized, public consumption or depiction to minors can still trigger violations.
Smart move: know local laws, consult entertainment counsel, and consider symbolic or edited visuals if the artistic point can be made without literal depiction.