Could be the case. Turkey and Pakistan also have opposing views in regards to the Ukraine situation. At least under Imran Khan's government. Pakistan sent some aid to Ukraine but Imran's policies were clearly neutral and accepted Russia's right for self-defence.
Also interesting to note that during the Beijing Olympics, weeks before the Ukraine war, Xi Jinping invited Putin and Imran Khan as special guests while many western countries boycotted the event. Xi met with Putin as well as with Imran, and, I'm sure much talks of importance was done.
Whenever Muslims ruled the Indian subcontinent, our relations with China were always friendly. The Mughal Islamic empire did massive trade with China and even surpassed the then Chinese dynasty's (Great Ming) GDP and overtook it as the #1 ranked economy in the world. It was only when the Brits and pro-Hindu nationalist took control of the subcontinent did the relations with China sour. Even today, Modi's India dislikes China while Pakistan & Bangladesh have very good relations with China.
I do believe that Pakistan, under Imran Khan, will purge the corrupt mafias and rulers and then start taking a strong Islamic path with an alliance with Russia & China.
In an Hadith, it was narrated that Thawbaan, the freed slave of the Messenger of Allah (blessings and peace of Allah be upon him), said: The Messenger of Allah (blessings and peace of Allah be upon him) said: “There are two groups of my ummah whom Allah will protect from the Fire: a group who will conquer India, and a group who will be with ‘Eesaa ibn Maryam (peace be upon him).”
And, The Messenger of Allah (blessings and peace of Allah be upon him) said – and he mentioned India – then he said: “An army of yours will invade India and Allah will grant its conquest to them, until they bring their kings in chains, and Allah will forgive them their sins. Then they will return and when they return, they will find the son of Maryam in ash-Shaam (Syria).” Abu Hurayrah said: If I live to see that campaign, I will sell everything I possess and join the campaign. Then if Allah grants us victory and we return, then I will be Abu Hurayrah the freed (protected from Hellfire). And when we return to Syria we will find there ‘Eesa ibn Maryam. Then I shall make sure that I draw close to him and tell him that I accompanied you, O Messenger of Allah. The Messenger of Allah (blessings and peace of Allah be upon him) smiled and said: “Unlikely, unlikely.” [very difficult?]