Preterm labor?

Faith Nicole
I'm 30 weeks and 2 days I'm having horrible pelvic pressure and a little back pain. I was contacting all day today but when I went to hospital yesterday they checked me and said I had a yeast infection? Could that cause all this pain? I also was monitored and as soon as I laid down the contractions stopped. But they did a exam and cervix is closed? Is there a chance i could still go in labor being in all this pain.