It's a bit a similar scenario as with Russia: There might have been a moment in the past at which the West (or in the case of Turkey, specifically the EU) missed the opportunity to successfully pull the country towards a deep integration with the West/Europe.
However, since no one can replay history, no one can be sure that this actually would have happened. Erdogan would still have been himself, with the same corrupt attitude and religiously fanatic mind.