If you know you are not immune, you cannot have the mumps vaccine while pregnant because the vaccination contains a live virus which could cause infection in the baby. For the same reason, you should not become pregnant for at least a month after having your mumps vaccination.