So much additional information is missing to provide an honest assessment, such as what type of stakes are you playing at, at what stage of the game are you referring to, how many blinds do you have left are you referring to, what position are you referring to, has the bubble been eliminated, can you rebuy, are you trying to cash…….?
You see, so much is unknown in your question.
But the standard play is……… 10 BB or less is usually a shove, but that is only a standard, that does not mean you must apply this tactic each and every time you play.
Choose this maneuver with some thought, not just a mindless robotic move of oh……… I got 10 BB’s so I MUST go allin.