No
Seriously though... this is one of the oldest and frankly dumbest "why are we there" talking points. Usually it's presented as "Gov'mt is secretly profiting from heroin trade!", or more frequently and less coherently "Gov'mt is trafficking dope" which are both (unfounded) conspiracy theories based solely on the premise that if Iran-Contra happened, then obviously it was happening again in Afghanistan.
Alhough you changed it up a little to "Big Pharma needs that dope!", that's actually even more retarded. Big Pharma doesn't need that dope, morphia is cheap, it's easily produced, and pharma companies legally produce on their own plantations, or buy from gov'mt sanctioned plantations in other countries. They do not need Europe's entire supply of "?" grade opium from a wartorn hellhole, or the logistical and PR problems that come with that, their margin is huge and the amount they spend on raw dope is trivial. Pharma sells a lot of stuff and really most of their products don't rely on muh opium alkaloids (morphine, codeine, thebaine, papaverine, and noscapine).
Virtually the entire US domestic drug supply comes from Mexico and S. America, with a small amount from the South Asian golden triangle producers. The arab holes produce dope for Africa and Europe, along with some Asian market share. A lot of it is shitty #2 and #3. That's why I always had to roll my eyes at the original version of this theory, yeah dude sure the US gov'mt is trafficking in dope that doesn't actually exist on the street. Nobody anywhere buys wholesale dope from white people (unless they're OC, and even then that's already been exported). The source countries are all controlled by their own ethnic cartels, working with the local gov'mts.
Does dope get diverted, or has someone padded their pockets in the last 20 50 years when you go back to the arming of the mujahideen against the Soviets? Sure. There are probably dimebag players involved around the edges. Is it some huge nefarious plot? No fucking way. Frankly that shit's too high-risk and simply just chump change for the big boys. What the fuck you need a risky hundred-million profit on drugs or pharma margins for when the gov'mt will happily spend trillions on "war" including contracts, personnel, medicines, food, construction, etc. There's plenty of pork for everybody!