I think sometimes it can be good, but it requires a read on an opponents play. I probably wouldn't do this against any of the other players I play with aside from this guy, but against him, I think it was optimal:

PokerStars No-Limit Hold'em, $2 BB (5 handed) Hand History Converter Tool from FlopTurnRiver.com (Format: FlopTurnRiver)

Hero ($194)
Button ($78.20)
SB ($239.70)
BB ($188.90)
UTG ($290.75)

Preflop: Hero is MP with Q, Q.
UTG calls $2, Hero raises to $8, 3 folds, UTG calls $6.

Flop: ($19) J, T, 7 (2 players)
UTG checks, Hero bets $12, UTG raises to $32, Hero calls $20.

Turn: ($83) 4 (2 players)
UTG bets $44, Hero raises to $154, UTG folds.

Final Pot: $281