X-ray during 40 weeks pregnant

Denise

I twisted my ankle yesterday which was my due date it hurts and is swollen would a X-ray be safe to do ? I’m just scared but wouldn’t a broken ankle be bad to

Leave untreated?