WW1 changed the face of many Moslem nations. It can be done.
Yes, war can change things ... and then they can change back.
Also, we did not occupy Turkey for decades did we?
Also Turkey was not always the capital of the Islamic caliphate. That too has shifted over time.