No, it was only in modern times (since the late Qing Dynasty) that it gradually became corrupt. The Tang Dynasty was really the first time that China entered the stage of stable development. As the saying goes, Sui and Tang Dynasties flourished. It is estimated that the annual GDP of the Tang Dynasty is equivalent to the total GDP of the world. In fact, Jian Zhen's missionary trip to Japan brought the essence of Tang culture to Japan, which was the most obvious beginning for Japan to learn from China culture. After that, the Song Dynasty also experienced a glorious period, only because the corruption problem in North Korea gradually declined. The Yuan Dynasty was not a real China dynasty. Temujin and Genghis Khan are both Mongolians, but they both live in Beijing. It can be said that this time they were invaded by foreign enemies. Although the Mongols are brave and good at fighting, they don't know how to govern the country. They were quickly replaced by Han Chinese and began to enter the Ming Dynasty. Zheng He can be regarded as an outstanding representative of the Ming Dynasty. When he crossed the Western Ocean, he was several times better than Columbus (who discovered the New World) and Da Gama (who opened the Cape of Good Hope route). It can be seen that the naval strength of the Ming Dynasty is equal to or stronger than that of Portugal and Spain (European maritime hegemons).
Only at the end of the Qing Dynasty, due to the prosperity of Kanggan, the rulers were proud and disdained to communicate with western countries, which led to the closure of the country. While the West is gradually stepping into the industrial society, China is still working by manpower, and it lags behind Europe in terms of technology and economic defense. Thus, Britain declared war on the Qing government. With the Opium War, the darkest stage in China's history began.
Although the replacement of past dynasties or the corruption of rulers are internal worries of our country, the free uprising of the people led to the end of the times. Recently, not only many foreign enemies invaded, but even the Qing government came to help suppress the people's uprising (the Boxer Rebellion, Tian Ping Tiandao) in order to save themselves, which led to people's hardships and people directly lived at the bottom of society.