Flu shot! Safe or not?

M in my third trimester and my doc just said i need to get a flu shot so that me and my baby are safe from any illness in future till delivery. Just wanted to know is it safe to go for it or not??