It highly depends on the individual case. Compared with the untrained dogs, trained dogs tend to protect their owners if attacked. But it doesn't necessarily meant that a normal family pet dog would do nothing when a break-in happens. Some of family dogs would also try their best to defend their owners.