I’m about 4weeks pregnant

I’m so worried I went to the hospital they gave me a chest x-ray two visuals comes to find out later that I am pregnant and they did not shield me can that cause harm to my baby ???