Wrong.
After soviet forces invaded Afghanistan on December 25, 1979, Afghan people picked up arms against the Soviets and their own government which had invited Soviets to help it stay in power.
US saw an opportunity and started helping Afghan people along with many other western and middle eastern countries including Pakistan (which was directly affected by influx of 3 million Afghan refugees and attacks by Afghan/Soviet jets, bomb blasts in all parts of Pakistan, etc.) by arming them to fight Soviets. The fighter became known as "Mujahideen".
After soviet withdrawal in 1987/89, Northern alliance war lords started looting, plundering and raping Pushtoons. In one particular instance they raped the daughter of a school teacher, and his students (Taliban in their language) picked up arms to take revenge for their teacher and then rapidly grew into a popular and massive force to counter NA warlords. Pakistan had ZERO role in their establishment.
Please get your facts right before blaming anyone