Usually no.
Cash game, full buy in stacks ~ roughly 100 big blinds (bb) each. Against most random unknowns horrible to get all in with 1010 or smaller, even 1010, JJ & QQ could be iffy against tighter opponents.
Cash game, with less than 20 bb effective stack it is ok to stack off lighter because -- actually I cant think of the right way to explain it right now but it is good to open your call/shove range depending on the situation.
Tournements start here and do some research on the subject.
Harrington's M and Theory of Inflection Points | Dan Harrington SNG Strategy