Yes, most of the railway retiring rooms have attached bathrooms. However, it's always recommended to check the room amenities while booking the room on the IRCTC website.