Diagnosed with UTI, will Doctor say if they detected STI?

If having treatment for a UTI, if an STI is detected during tests, do the medical staff have to say or will they treat without telling if there’s an STI or not?