Is it bad to get an X-ray when you're 2 months pregnant?

Depends. It depends on the type of x-ray and whether or not your abdomen was shielded with a lead apron. The period of time up to about 12 weeks is when the babies internal organs and limbs are developing so x-rays should be avoided during this time period unless absolutely necessary.