This tactic you’re talking about is called slow playing. It’s just a perfect exemple how of the tactics to be used depend on the moment and your opponent.
Sometimes you have a very aggressive player against you, and this may work. But if you receive an AA and plays this way against a very tight player, you will not be able to extract a lot of value, the game will be extended to the river and the vilain could fold after all, or worse, you see your great starting hand being beat by a weak one by the board cards.
More, if you begin to repeat continually this tactic, the other players no longer will pay your bets, and you will not get a real value with your big hands.
It is a matter of analysis on what is happening on the table. Sometimes it can be good to hide the game, sometimes it's better to be aggressive. The important thing is to confuse your opponent as much as possible, so that the hand control is with you.