Comment by sn9
This only works if you actually check the Anki cards against the source material.
So if you wanted to learn the contents of a book without reading it, you're doing it wrong.
If you want to read a book and then test yourself on what you've read, it's totally fine.