It does. In No-Limit Hold’em if you have a flush with an ace as the highest card and your opponent has a flush with a king as the high card, you win. The easiest way to understand who wins is to lay out your complete five-card hand and compare it with your opponent’s hand. If anyone has a higher card, that person wins (obviously you both share the cards on the board).