No he assumed power through maneuvering after Lenin died in 1924, who also was not elected, they won the Russia Civil war which started in late 1917 after the very short democratic government from febuary of 1917 was overthrown