CT Scan

Ok I'll be 21weeks tomorrow and today I had to get a CT scan because my eye is really swollen and they wanted to see if the infection was behind my eye.. I cried for 30mins because I was scared something would happen to baby. They covered me up but I'm still nervous. Has anyone had a MRI CT scan or X-ray during a pregnancy and everything was ok?.?.??