Not that it would be everyone's first choice, but it is possible to concoct positions where having an extra piece block your opponent's moves and thus gives you an advantage (think blocking an escape route for a checked king...)
FIDE Laws of Chess, rule
When a pawn reaches the rank furthest from its starting position it must be exchanged as part of the same move on the same square for a new queen, rook, bishop or knight of the same colour.
The Wikipedia article on promotion contains some information about the history of the rule, which previously implicitly allowed promotion to a piece of the opposite color.
While today's official rules do forbid promoting a pawn to a piece of the opposite color, it has not always been the case. I would like to contribute to this topic with a tale in the field of chess humor that stars an alien learning chess. The tail exploits loopholes in the rules and features not only promoting to an opposite-colored piece but also promoting to a king:
Elementary, my dear Watson (scroll down to "Yuri Dorogov’s story")