Is it safe to breastfeed while pregnant??

Ta

My doctor wants to to stop by 20 weeks but my baby is only 6 months and I wanted to make it to at least a year 😔