This is a matter of judgment rather than a strict rule. If a child is very young, it's often best to hold off. However, if a child demonstrates that they can handle the content maturely, whether that's cartoon violence or more grown-up themes, there's little reason to keep them from playing. Ultimately, it comes down to knowing the individual child and what they're ready for.