No. When the city's name officially changed from Constantinople to Istanbul in 1930, the location of the capital remained exactly the same. The city itself—straddling Europe and Asia on the Bosphorus—did not move; only its name was formally standardized to the Turkish form long used locally.
Turkey's capital had already shifted to Ankara in 1923, so Istanbul was not the capital at the time of the name change.