Yes.
If Trump were to cover up his adultery using campaign funds, that would have been legal. If, however, he had mislabeled the expense, that may have been a violation.
Trump was so worried about the story getting out before the election, he conspired to suppress the story by having his lawyer claim that the payment was for legal expenses. Since Trump personally paid, that was a crime.