If you have depression or another condition affecting your affect and your emotions, sure. Otherwise it's pretty obvious to anyone that concepts on orders of magnitude higher levels than hormones being correlated with happiness, or if you prefer, those concepts having a significant effect on the overall action of those hormones.
I don't have experience with cocaine, but as a Bavarian I made plenty of experience with alcohol. I've never been addicted, but I had my fair share of Oktoberfest and beer garden visits. And yet you don't see my optimizing my life around it. In fact, nowadays I have a beer every few months if even, simply because most of my hobbies don't work well with alcohol.
As for cocaine: As I said, no experience, but it appears to me that even very wealthy people who probably consume it also still do other things in life, despite not having to for income etc.
Even if one day you could just squirt the cocktail directly into your receptors or otherwise trick them, there's more to happiness as a part of life than turning yourself into a vegetable, but I digress.
I remember an old addict speaking of cocaine as if it was his only true love. Waxed poetical about it, the way we remember our first kiss.
Seems that at least some people are wired this way.
Your choices, (in)actions, and perceptions are things that can cause the release of said chemicals.
Your intelligence, as well as abilities and habits, can effect how (or even whether you can) do or do not do things.