No, that's not true. Cohen pleaded guilty to five counts of tax evasion, one count of making false statements to a financial institution, one count of willfully causing an unlawful corporate contribution, and one count of making an excessive campaign contribution at the request of a candidate or campaign.
Put it this way: if candidate Donald Trump had written Stephanie Clifford a $130,000 check, drawn from his own personal checking account, to keep quiet about an alleged affair, no crime would have been committed.