Erm yes thats what he did? Which he would not have been able to do had he not had spare cards...
I think CapnBloodbeard means that it doesn't matter that a player has his yellow card, as he doesn't have his red card and that is what should be coming out once a player grabs a card off of a referee.