Treatment??

So I took both uti “AZO” treatment from the store and got a treatment for yeast infection. Is it bad if I took both not really knowing if I had either? Like would it make anything worse?