Agree with previous, like most things in poker, very situational, do what feels right.
In an attempt to answer: If they table is fairly tight and you THINK that you will get folds post flop or after flop- then you can raise and c-bet if called with reasonable implied value.
However, as I always seem to find, there is often an idiot who will call when they hit ANYTHING, and unless you hit a set (3 of a kind), you don't know where you stand to any over cards. For this reason I will always keep the pot small, maybe just a call and a small bet to take down the pot, folding to a raise.
The only other circumstance I will comment on is in a sit and go or tournament, say you have 5,000 chips and blinds are maybe 500/1,000 something like that, then shoving is fine (not TOO often) as a pair is always a favourite except to a higher pair (which you will rarely run into).
This is just how I play. Do what is comfortable. Good luck.