This issue is debated. Proponents argue institutions inciting violence share blame, while opponents emphasize that individuals alone hold legal responsibility for their actions.
Blame gets murky fast, but legal responsibility should stay with the person who chose the act. Otherwise every bad influence becomes a defendant.