X ray during pregnancy

Jackie🇩🇴
I sprained or fractured my foot I wouldn't say I broke it cause I would have been in extremely bad pain it's just my left foot on the side that pretty banged up swollen and bad pain when I touch it or put pressure on it I would think I would have to see an orthopedic anyways my family doctor obgyn told me to get an x Ray I'm just worried that it will harm my baby especially in the early months since I'm only 12 weeks cause of the radiation has anybody else been in a similar situation