Is it safe to breastfeed while pregnant?
You might choose to breastfeed through your next pregnancy for several reasons. For example, you might unexpectedly fall pregnant while your first baby is still young (it is possible to fall pregnant while breastfeeding, even if your periods haven’t come back). Or you might not be ready to wean your toddler yet (weaning usually happens any time between birth and age 3).
Whatever the reason, it is usually perfectly safe to breastfeed while pregnant. Your body will carry on producing enough milk to nourish your older child, while your unborn baby will get all the nutrients they need from your body.
Breastfeeding does trigger mild contractions. These are safe in uncomplicated pregnancies, but if you are at risk of preterm labour — for example, if you are expecting twins or more, or if you have had a miscarriage or preterm birth in the past — then seek advice from your doctor or midwife.
Source: https://www.pregnancybirthbaby.org.au/breastfeeding-while-pregnant