Xray while ur 3 months pregnant

Annabella
 Hello to all mom i just want to ask and advice  i had to do and. Xray of my lungs  so they can see if i had a tuberculoses but im scared  maybe its not safe for pregnant. Did anyone had a xray while they pregnant how they did it did  they put cover on there tummy of pregnant woman?  Guys help thanks to all