You first understand and only afterwards encode your understanding in cards. It's in reviewing the cards that you put the understanding into your long-term memory (or possibly reveal gaps in your knowledge, in which case you revise your understanding).