hepatitis b shot

Is it safe to get the three series while pregnant ?!
I already got two out of the three the second shot was when I found out I was pregnant.