Obviously. A common example would be those people who grow up in poverty, with little to no money to keep them alive, surrounded by crime. For example, southern states in the US where there are areas full of gangs, many struggling teenagers (suffering from a lack of support both financially and personally) join these gangs to make some money for themselves (or their family) as it's their only option most of the time, which leads them committing a lot of crimes such as drug dealing and murders. If these teenagers grew up in better conditions, then there would be no need for them to participate in these offences.
If there is an environment where poverty was not an issue and families were stable and had enough money, then the number of crimes would certainly decrease.
However, whether they should be punished or not is controversial. I honestly think that any person who commits a crime that inflicts pain (doesn't have to be physical pain) on somebody innocent should be punished, regardless of their reasons. Otherwise, if a decree or whatever comes out, accentuating that it is okay for the victims of poverty to commit crimes, then everyone will do it, which will lead to chaos. You cannot let an unfortunate person get away with a crime with the reason being that they are suffering economically, socially (etc), at least not in my opinion.