Branching scenario based on learners' quiz results

Hi, I am wondering if it is possible to create branching scenarios based on learners' quiz results. This means that if a student's response to a quiz is wrong, this leads the student to an explantion slide. I am aware that the branching scenario content type is based on leaners' decision, but if the branches can be created based on the quiz results, it would be great. Thank you.