Could Istanbul's arrested mayor Ekrem İmamoğlu become Turkey's next president?

There is currently no obstacle for İmamoğlu, who was announced as the CHP's presidential candidate, to be elected despite his arrest.