It depends entirely on whether or not this was a top-down decision. The most efficiently run companies consider the likely returns on illegal activity and the potential ramifications of getting caught. If the math works out in favor of the illegal behavior, they'll go ahead and do that. Depending on the nature of the illegal behavior, they may save for a fund that would pay for costs of being caught.
The math isn't just about money in vs money out, either. The best consider the effect on the brand, cost of a PR campaign, potential legal changes, lobbying fees(to make currently illegal behavior legal), the likelihood of getting caught in the first place, and a lot of other stuff that I'm probably not thinking about.
It's not right, but when shareholders demand exponential growth, the owners and managers will do what is necessary to make that happen.