Yes, engaging in flashcard-based spaced repetition would qualify as valid retrieval practice. But if you're in a skill hierarchy like math, then you would need to make sure you're not only recalling isolated bits of information (facts, formulas, theorems, etc) but actually practicing pulling together this information to solve problems. Like this: https://news.ycombinator.com/item?id=40954571