Is bacitracin the same as neosporin?

No. Bacitracin is only one ingredient in neosporin. Neosporin is a topical antibiotic that contains neomycin, bacitracin, and polymyxin b. As long as you are not allergic, you can use them interchangeably.