Serious behavior problems are not the norm in the competitive sports world, but they do happen. Training can certainly affect behavior, and behavior can influence training! They are not the same!
Most behavior problems have underlying 'emotional' issues and training alone isn't the answer. If your dog is barking at someone, which is commonly a 'distance increasing' behavior that comes from the place of fear, we need to acknowledge that emotion, not suppress it. We can certainly use positively trained skills like obedience to replace an undesired behavior, but it needs to come from a place of confidence and choice, not force or coercion.