Yes. Both are the same combination of antibiotics with uses to treat many acute infections like the inner ear, bronchitis, immunocompromised pneumonia, traveler’s diarrhea, etc. Both are a combination of strong antibiotics trimethoprim and sulfamethoxazole and have some anti-inflammatory properties like severe rhinosinusitis. Bactrim should be taken with precaution as it shows many adverse drug interactions.