Answer
No, Theodora did not serve in the imperial court before becoming an Empress. She was born into a peasant family in Constantinople and was raised in a brothel. She later became an actress and dancer, and in 523, she married Justinian I. After Justinian became emperor in 527, Theodora became empress.