Sulfamethoxazole antibiotic

Is it save to take while pregnat 16 weeks have infection on my leg from a spider, anyone???