Kidney pain

K
Is it possible to have bad kidney pain during a UTI? I just figured out I have another UTI on Wednesday, but this time the right side of my back and front hurt sooo bad. Can it be a UTI or is it a kidney infection?