The main risk in getting an x-ray is being exposed to radiation. Doctors try to limit the total amount of radiation you get over your lifetime. Getting too much radiation can raise your chance of getting cancer.