I'm not so sure of that. The war definitely proved that America shouldn't fight a direct war against Russia but everyone already knew that because of nuclear weapons.
The war was definitely more costly to the Russians than the gain is worth to them and America can recoup their losses by asset stripping what is left of Ukraine