Is a UTI associated with using the bathroom a lot?

Yes. Frequent urination can be precipitated by uti. It will not cause UTI if that is what you are asking, but in the reverse, holding in your urine unnecessarily can increase the risk of having uti.