The only lesson that the US may have taken from its Afghanistan campaign is perhaps that it should avoid directly fighting a war. And that is what it is doing in Ukraine.
China invested heavily in CPEC which they regarded as a dream project and a way to revive the ancient Silk Route has already taken a hit, and countries part of it are under the trap of Chinese debt or have defaulted.
The United States has been using its global superpower status to sanction various countries as per its own volition in order to maintain its status quo in world politics.
There is no less chance that Trump may flip-flop from his stand on Russia and his policies would be the result of geo-political and strategic considerations that influence the Russian-US ties.