I was put an antibiotics for acne as a teenager. Once I stopped I had IBS, and still have it to this day. What helped the most was a fecal transplant.
Of course, going on them for years is pretty different from a course of a week or two, and different antibiotics will have different effects.