No, yellow cards in pre-season don't count towards the totting up.
Red cards are a bit of an anomaly. It was discussed on Talksport as part of the fall out from Man Utd's preseason tour. Valencia I believe committed quite a nasty foul. The ref gave Mourinho the opportunity to sub the player...