I think the Soviets had been out of Afghanistan for 5 or more years before the USSR fell. Maybe I’m misremembering.
ETA: Looking at W'pedia, I see that I was wrong. The Soviets withdrew from Afghanistan in February 1989. The dissolution of the Soviet Union began in summer 1991, just ~2 1/2 years later.
DUpipo need to maintain their illusion that Reagan-GHWB had nothing to do with the crumbling of the USSR.