Of course one always has to follow international law. This was also the case in Crimea. According to the Charter of the United Nations, every people has the right to self-determination.