Yes. During Soviet Invasion of Afghanistan from 1979 to 1989,
the CIA assisted the Afghan Mujahedin in their guerrilla war
against the Soviets. Osama bin Laden was one of the key Mujahedin
leaders and helped facilitate weapons transfers with the CIA.
Following the Soviet withdrawal from Afghanistan, the United States
and CIA also ceased assisting Osama bin Laden and Mujahedin.