Depends, if you steal food from a grocery store to feed your family I don't feel nearly as bad as if you were to steal it from another starving family.
The grocery store is going to throw all the shit they don't sell out anyways so to me it makes sense. But I also believe in the rule of law, no...