Can I take my uti pills & birth control pills at the same time?

I’m on a low dose bc, junel fe & idk if the Bactrim pill will affect it badly