This is not the TLDR and the Anki worshipping is silly. You can’t use Anki to learn physics, or math. There’s only so much you need to memorize in those subjects, the rest you have to work through problems.
Some other comments had me doing some research on Bloom's taxonomy and I really think the principles apply in mathematics and physics.
Problem solving is great practice for learning, and covers the 3rd and 4th domain levels (application and analysis, respectively). However, what Bloom believed is that learning is hierarchal, and to apply and analyze you must complete the first two domain levels (memorization and understanding).
Anki in the terms of math and physics is great for that (and I will also rarely create a flashcard out of a exercise, but that is mostly because I think something similar will be tested on later).
Yes you can, check Michael Nielsen or "A mind for numbers". Anki is two highest highest utility learning techniques combined, so by pareto principle it is tldr.