Need advice

I'm in my 2 we and had to go to er cuz I was getting bad asthma attacks. Well I have walking pneumonia. I had to get X-ray to confirm it and when asked if I was pregnant I told them I just got done with fertile window. So they said no worries and that if that's the case I'm not. Could this X-ray have caused me not to get pregnant this round due to the radiation. They have me on Tylenol 3 and prednisone and zpak to get rid of pneumonia and pain from coughing. Help advice. Really want my rainbow baby. Feeling discouraged and depressed.