Yes, there is radiation all around the machine, but non-operating radiation is negligible. If it is in working condition and the door of the room is not closed, then there will be radiation even outside the door. When hospitals build radiology rooms, they have to build them according to specialized standards and have walls of sufficient thickness to ensure that the radiation does not affect the outside.
The principle is that the X-rays generated by a high-speed electron stream hitting a metal target are more penetrating to skin and muscle, and weaker to bone.The X-rays penetrate the human body and are exposed on the negative, while the parts that have not been penetrated (bone) are not exposed, so they leave a white shadow of the bone on the film.
If the machine is in working condition at the time, you are exposed to radiation when you are next to it. You will not exceed the dose limit by receiving an X-ray once a year, so rest assured.