In principle yes, but you can release yourself by proving that you could not have prevented it. The code lays down the principle that one is liable not only for one's own act, but also for the act of the persons for whom one is responsible (art. 85).
Specifically, the father and the mother are liable for the harm caused by their minor children who live with them (art. 85). This liability therefore presupposes two things: a minor child, and cohabitation.
The good news is that this liability is not absolute. The father and mother escape liability if they prove that they could not have prevented the act that caused the harm (art. 85). The burden of that proof rests on you.
There is, moreover, a limit relating to the child's own capacity for discernment: a minor lacking discernment is not civilly liable for his act (art. 96). Conversely, a minor who possesses the degree of discernment necessary to appreciate the consequences of his acts is personally liable for them (art. 96).
In short: you risk being held liable, but the law leaves you the possibility of demonstrating that you did what was required.
Esto es información jurídica general, no asesoramiento legal. Para asesoramiento sobre su situación específica, consulte a un abogado colegiado en Marruecos.