Was there ever a time in Afghanistan where the cause would being fought for (or more accurately aligned) with a good cause?

In the wake of the US withdrawal from Afghanistan there are a lot of people saying that "the concern for the Afghan people was never a motivating factor behind the war in Afghanistan".

WELL NO SHIT SHERLOCK, but here's a news flash, corporations aren't immoral, they're a-moral; they'll do what they can to make money for better or for worse for the rest of society. If cutting corners around regulations when constructing buildings and putting people in danger will swell their profit margin, they'll do it. If preventing Trumpian shitheads from spreading misinformation by de-platforming them will swell their profit margins, they'll do that.

And US neocons weren't the only ones who supported the US invasion of Afghanistan, Iran supported it FFS. Now I'm not a tankie bullshiter who thinks that because a country that hates supports a policy, it's automatically good but that Iran would be supporting a US policy is a good indicator that at some point, megacorps weren't the only ones who stood to gain from the war.

Also, the notion that Afghanistan was a nation at peace when the US invaded is not true. There was an ongoing Civil War between the Islamic State (Northern Alliance) and the Islamic Emirate (Taliban) of Afghanistan. At the time that the US went into Afghanistan, the Northern Alliance controlled 15% of Afghanistan (the Northeastern most part) while the Taliban controlled 85%.

Now, in my opinion the outcome that people are slamming Biden for has been inevitable since the invasion of Iraq in 2003. That said, my mind isn't made up (this isn't a rhetorical question) so I'm asking about how the war was handled before then. Do you think the war could have been handled differently in a way that would have had a "favorable" outcome?
Was there ever a time in Afghanistan where the cause would being fought for (or more accurately aligned) with a good cause?
Post Opinion