Breastfeeding while pregnant?

Might be a silly question, can you still breastfeed if you're pregnant or trying to get pregnant? I know you can get pregnant while breastfeeding (I've had 3 periods in 6 months) but is it advised to continue breastfeeding once you're pregnant? I didn't know if the uterine countractions would affect the pregnancy?