Yes, when you flop a set of kings or aces after having limped in, players probably won't put you on the hand. They'll also usually have nothing themselves, so it barely even matters what they think you have.

The problem with this strategy is that you simply aren't extracting the value of your hands. When you have the best hand, it is important that you bet (except it's certain rare cases when it isn't necessary) so that you can convert your holdings into profit.