Has anyone had to take measles and mumps while pregnant

Shay

I’m currently pregnant and have to take the vaccines in order to continue with work and wanted to know if it’s recommended to take while pregnant or not , does anyone know ?