If uncooked rice is soaked for 2 days, is it still safe to eat (after it's cooked)?
No, certainly not. 

Food is generally not safe to leave at room temperature for more than 2 hours. Foods which are shelf-stable (can be left out, it doesn't matter how long) are the ones which have had some of the necessary bacteria growth factors removed. 

Rice is a food which doesn't grow bacteria because it doesn't have enough water to sustain a colony. Once you add the water back in, you remove the exact circumstance which protects it from spoiling. It is certainly not safe. 

Besides, "after cooking" doesn't matter, as you can't turn unsafe food back to safe, not by cooking or by anything else.