Yes you can. But I am not sure if you can do it in Duolingo. because then and in that case are not fully interchangeable.
in that case = o halde, o zaman, öyleyse
O zaman emin değildim. -> I was not sure then. (Here you cannot replace it with 'in that case')