X-ray while pregnant

Has anyone had to have an X-ray done while pregnant? What are your thoughts about it? I’m supposed to have an X-ray done on my foot. I just don’t want any issues with the baby since I’m so early on.