Just wondering if it is safe to have the flu vaccination whilst pregnant?

Thanks