I'm no shill for the US, but that's a hot take that's too simplistic by far.
Eg who armed the Mujahideen?
The USA, to fight the democratically elected government of afghanistan.