Yes, that is basically how the justice system works. If you have enough money and lawyers you can avoid practically any consequences.