Isolating yourself in a room can protect others from radiation. Pregnant women and children are the most at risk of getting affected by radiation and should not be allowed to go in your room. Visitors may go to your room only when your doctor has deemed it safe for you and them.
Even in a hospital, the amount of time allowed for staff to be in your room is limited. They can stay in your room at a safe distance and can stay with you in the room as long as necessary.