Okay to visit a critical care unit in hospital while pregnant?

My mother in law is in critical care, intubated and sedated. Is it safe for me to visit a unit like this in the hospital while pregnant and immunocompromised?