Yes. Each nation looks out for its own interests and the interests of its citizens. The only thing that's surprising is that a large number of citizens seem to think that this is unusual or immoral.
A large number of citizens think that it makes sense for a certain set of nations to work together in many arenas. For decades, Western Europe and North America worked together to both regions’ mutual benefit.
Trump has torn that apart, which has basically hurt both sides to China’s benefit which appears as a far less capricious partner.
Nations should work together when their interests coincide. That's just a generalization of the idea that nations work to support their own interests. But, quite often, those interests are in conflict.
Some people appear motivated to shit on some nations while ignoring the depredations of others. Perversely, they are opposed to the nation of which they are citizens and embrace "the other side".
For example, the claim that "China appears the less capricious partner" ignores an enormous amount of evidence that China screws over international partners with no hesitation should that be in its interests.
See the recent stories about WHO delaying the release of information from Taiwan about the coronavirus.