Not at all. It was our choice to withdraw and we did. That's not winning the war, that's our interests aligning.
Again, Afghanistan didn't force the US to withdraw - they survived because we chose to let them. We decided to withdraw not because of fierce Afghanistan resistance, more military personal committed suicide than were killed by enemy action, but instead because we elected a politician who thought the war was a waste of time.
This is not a time to lament with absurd claims like "Afghanistan won the war". Instead, we should be happy that a needless war is coming to an end.