Not quite: it was a cathedral, then a mosque, and now a museum. The cathedral was completed in 537, served as the head of the Orthodox Church of the Byzantine Empire until the fall of Constantinople in 1453 to the Ottomans. At which point it was converted to a mosque. It became a museum by order of the founder of modern Turkey, Ataturk. It was part of his overall program of modernization and secularization of Turkey.
So, no, it has never been reconsecrated as a church since the Ottoman takeover in 1453.
It's what should be done with the whole Temple Mount in Isreal in my opinion, turned into a giant museum. The Dome, the mosque, the entire area that the Muz are holding onto as "theirs" when it's clearly appropriated territory.
The churches in mosques built by the Moors in Spain, which were then turned into churches after the Reconquesta, are now all museums, too.
It's true it hasn't been reconsecrated as a church since the Islamofacists conquered Turkey, but it DID change religious denominations and was briefly re-consecrated as a Roman Catholic Cathedral from 12041261, during the crusades. The Byzantines got it back and turned it back into an Eastern Orthodox cathedral (at least until 1453 when Constantinople fell to the Muslims), but they're still bitter about the Catholic takeover in the 1200s to this day.