for sure, it’s just that xrays are ionizing radiation and as such are extremely hazardouss. xray techs wont even be in the same room as the machine when its on. the glass they’re looking at you through is leaded to prevent their repeated exposure to it.
I see no issue with this