Answer
Yes, Kārlis Ulmanis was an elected official before becoming an authoritarian ruler. He served as the Prime Minister of Latvia on several occasions and was elected as the first President of Latvia in 1936. However, his presidency marked a shift towards authoritarianism, and he eventually established a dictatorship that lasted until 1940.