Sovereign countries are free to ally with anyone.
Russia broke the Budapest Memorandum to the START 1 Treaty, when it invaded, in 2014, during the weak, appeasing Obama/ biden term
Tell that to Cuba.