That's right.
It is true that the Criminal Code contains no definition of what constitutes a miscarriage of justice, although that term is used a few times.
In the practice of criminal law, yes, miscarriages of justice include not only mistakes made by participants, such as lawyers, judges or police officers, but also mistakes made by the accused themselves, or choices made by them or a defence lawyer. So that includes a host of errors that can occur.