Contractions or uti

Hello ladies I have a question I went in today to my ob because I’ve been having lower back pain all through out midnight and until now... so my ob told me I have a uti but I’m 1 cm open? Can it be active labor as well or ?