score:2
No, you donβt have to leave the country. The UK government travel advice for Turkey states:
If you plan to stay in Turkey longer than 90 days, you must apply for a residence permit before the 90 days ends or apply for a longer-stay visa before you travel
So as long as you apply for it before your visa expires you can stay in the country.