True, however the populous isn't in support of it now, more than 80% reject the Islamic Republic and prefer a democratic government.
In 1979, after discontent with Mohammad Reza Pahlavi's authoritarian rule, which aligned Iran with the Western Bloc and cultivated a close relationship with the US, there was more support of Ruhollah Khomeini, in which 98% approved the shift to an Islamic republic.