No, Both are different places but built next to each other Sultan Ahmed Mosque known as Blue Mosque built in 1616. While, Hagia Sophia Built on 537 AD.