During pregnancy, some immune cells and antibodies can pass from the mother to the fetus to provide temporary immunity.