You can form a bad relationship with literally anything. Social media, television, video games.
The smartest and most passionate developer I have ever known smoked weed literally every day.
There are many musicians who use marijuana regularly. They perform, practice, and achieve at a level I can only IMAGINE.
What you are really talking about here is something nefarious: Self medication. Personally, I self medicate because I have a very busy mind and I need something to slow my brain down at the end of the day.
Other people self medicate due to depression. This IS bad. It is a way to escape reality because you are unhappy.
Anecdote: I smoked weed in high school pretty frequently. Then, I left for college, was super busy, didn't have any money, so I didn't smoke weed for almost a decade.
Eventually I moved to a state that has legal weed, and I bought a joint, and I smoked it. And I found something: It wasn't just youthful rebellion, I enjoy being a little stoned! So now I do it occasionally.