Do NPCs only drop XXX card when you capture it and win a match? (i.e. The targeted card is blue before winning.)

Or do I only need to win a match to get a chance for a card to drop that's either blue or red?