Any dog (or child LOL) is prone to bad behaviour if you don't train them. It takes time and effort and consistency but it's 99% common sense. If you pick a smart breed then it does not take very long, but the most important thing is to establish yourself as the Top Dog. Dogs work on a hierarchical social system - they need to know where they stand in the pecking order and YOU have to be pack leader. Good luck!