Bactrim is a sulfonamide antibiotic. It is believed that the drugs from the sulfa drug class can cause the urine to stink and smell weird. So, yes Bactrim can cause the urine smell bad.