No, they didn't. It's just a PR propaganda that has you fooled in.
They had to cede land to China, had higher no of casualties, destroyed infrastructure and their economy collapsed within 6 years with an inflation rate of 775%.
And remember that China's military is cyclic too