The Doctor was offered the chance to survive if he chose to join the Bolsheviks, but he refused.
https://www.townandcountrymag.com/society/tradition/a8072/russian-tsar-execution/