You shoud also analyze all the conditions atound you before go allin (if you are suited, your position, number of players that called the allin, in case of you are deciding to call, your stack, etc.), to avoid bad beats.
If im with a high poket pair, i dont think twice to go allin, buy if i have two high cards, like big slick for ex, i study all the conditions around me, before make a decision.