One of many modest-sized if not necessarily small cuts. But Afghanistan did not, say, defeat
and invade the Soviet Union.
It out-endured them within its own territory. Much as has happened to the US several times, with resulting embarrassment but not regime change.
Military spending on the part of the US, falling global oil prices, multiple internal contradictions and failures, revolt within Warsaw Pact states, and growing internal dissent were far more significant contributors to the ultimate fall.
Britannica and World Atlas give similar accounts:
https://www.britannica.com/story/why-did-the-soviet-union-co...>
https://www.worldatlas.com/articles/10-reasons-for-the-colla...>