Yes he did, not because he hates Atatürk, because he was a puppet of Fethollah islamist terrorist.
And now Erdoğan is adoring Atatürk day/night, not because he loves Atatürk, but because he is Kemalists' puppet right now.
He has no personality, he is an empty brain which leds others to rule him. He only cares his own benefits and right now his only benefit is "survive". There is no other people group in State that he can trust other than Kemalists.
I know. That is why most foreigners are facing hard times to understand recent changes with him, i mean he was saying "Atatürk is that, secularism is this, bad bad bad" and now he is saying "Secularism is must, it is not against Islam. Atatürk is our great national leader and we are following his path" lol.
That change is impossible to be understood by a typical foreigner that follows western mainsteam media, but actually it is pretty simple. He was a puppet of Islamist Fethollah in past, now he is our puppet.