It's the same problem test driven development faces. Some things can be inferred from a list of test cases (exam answers). But some things require deeper insight that no amount of test cases can provide without spending time actually thinking about the big picture.
It can if you go deeper and understand the why behind the answer. The problem is that it's possible to memorize what the right answer is without understanding the material at all.