Before receiving any vaccine while pregnant, you should consult with your healthcare provider (e.g., OBYGN) about what will be best for you.
As a general rule, most inactive vaccines, such as influenza, are safe and provide protection to pregnant women. Whereas live vaccines such as measles, mumps, and rubella (MMR), should be taken with caution.