Just to be clearer, you can win a pot with a certain hand, but the hand might not be raked depending on the betting activity during the hand.
If no one calls your bet, there is no rake. At least online. I haven't played live in a while, not sure if they rake small pots where bets haven't been called...