Did turkey become a republic after first world war?

A few years later, in the early 20s.