Yes, in 17th-18th century they allied with Russia against the Ottomans. In 19th century and 20th century they almost allied with us against Russia/Soviet Union.
But now, since the gap of power between Russia and Turkiye is far smaller than before, they are once again, against both Russia and...