UTI maybe??

Yesterday I had lower back pain, and it hurt to pee two times in a row. It felt like glass almost. Now today it doesn’t hurt really? Could it be a uti?