No, resistance can happen naturally, but overuse of antibiotics can result in resistant bacteria. Bacterial populations can also move around via introduction of animals from other farms, or through introduction via carrier species. It does not always mean that it is directly attributable to practices on any one farm.