Breast pump

Is it bad to pump I’m currently 18 weeks my breasts get so sore they leak a lot, I read somewhere that it can cause contractions and lead to a preterm birth what should I do ?