Of course.
There is a famous saying, if you don’t fight for public opinion, others will fight for it.
Foreign countries also have many agents in China, often called the Leading Party, the Cent-cent Party, etc.
The most obvious example is that the United States suffered disasters and people died. As Chinese, they mourn Americans as if they were mourning their heirs, saying that life is priceless, equality, human rights, etc., and they even shout, "Today we are all Americans." However, when other developing countries suffered disasters and killed people, they remained silent.
There is also the recent Snowden incident. People usually criticize the Chinese government for its online control, but when the United States revealed that it was stealing private information and monitoring private communications, they fell silent.