Can i take azo for more than 2 days?

I have a UTI, went to the doc friday and started antibiotics, doctor told me to take azo for pain relief, but didn’t tell me how long I can take it for, but the azo box says for 2 days. Will I be okay if I take it until my symptoms are cured by the antibiotics?