Wrong.
It was the US who made allowing al Qaeda a base camp in Afghanistan as a condition for aid.
You need to read up on Charlie's War.
en.wikipedia.org
{...
Operation Cyclone was the code name for the
United States Central Intelligence Agency (CIA) program to arm and finance the
Afghan mujahideen in
Afghanistan from 1979 to 1989, prior to and during the
military intervention by the
USSR in support of the
Democratic Republic of Afghanistan. The mujahideen were also supported by Britain's
MI6, who conducted separate covert actions. The program leaned heavily towards supporting militant Islamic groups, including groups with
jihadist ties, that were favored by the regime of
Muhammad Zia-ul-Haq in neighboring
Pakistan, rather than other, less ideological Afghan resistance groups that had also been fighting the Soviet-oriented
Democratic Republic of Afghanistan regime since before the Soviet intervention.
[1]
Operation Cyclone was one of the longest and most expensive covert CIA operations ever undertaken.
[2] Funding officially began with $695,000 in 1979,
[3][4] was increased dramatically to $20–$30 million per year in 1980, and rose to $630 million per year in 1987,
[1][5][6] described as the "biggest bequest to any Third World insurgency".
[7] Funding continued (albeit reduced) after the 1989 Soviet withdrawal as the mujahideen continued to battle the forces of President
Mohammad Najibullah's army during the
Afghan Civil War (1989–1992).
[8]
...}