Interestingly, research shows that the production effect also improves comprehension, albeit not as much as the generation effect (unsurprisingly)
So it's not as good to just mindlessly memorize and/or transcribe an example, but it's still better than just passively reading