If you are pregnant and infected with hepatitis B, you can prevent your baby from getting hepatitis B.