Can you still breastfeed while pregnant?

I really want to start trying for another baby at around 6 months postpartum but the only thing that is stopping the idea is I am scared my milk will dry up and my goal is to breastfed until my child is a year old.

Does anyone have experience with breastfeeding while pregnant?