It depends on the crime. If you're starving, stealing just enough food seems justifiable. Poverty is extremely hard to escape once you're there, and every year the poverty line gets higher and higher. (The poverty line is the minimum level of income deemed adequate in a particular country. In America as of 2019, a family of four that lives off of $25,750 per year is considered officially poor.)
That also doesn't even cover how difficult it is to get food stamps. So yes, stealing for survival is justifiable. Any other crime is not okay in any way shape or form.