It doesn't work like that. If he had a yellow card before the match and he got another yellow in the match then he would be able to play the rest of the game but will be suspended for the next time. If he got two yellow cards in the same match, then he would get sent off.