Is It Safe to Get a Flu Shot While Pregnant?

Now that we’re in the throes of flu season, nearly everyone is encouraged to get vaccinated. But is it safe to get a flu shot while pregnant?