So if you donate money to charity then you get a pass on obeying the law and general morals? Is this like indulgences from the Pope? How much does a murder cost?
This is not at all common and hasn't been for a few hundred years.
(That said, your point about wealthy people making big donations as a PR move is definitely as prevalent as it ever was)