Sure and the next time you have a surgery the surgeon might be really, really bad at cutting inside you, but passed their exams because the other students helped out a lot.
Honestly, an exam should control the success of learning, nothing more. Passing an exam should always finish a course or topic. Failing an exam, though, should be quite normal and just lead to more repitition.