My kidney hurts should I go to the hospital

I took a urine test for UTI and they gave me antibiotics it's been 2 days the prescription is for one week but I'm wondering if you have a UTI and it goes to your kidneys do you need to be at the hospital the antibiotics are 500mg three times a day.