Overall, no he didn't. But in the last single operation, yes he did. Juventus can't be obliged to buy a player. They overpaid for him also because of Berardi, but the decision to sign the player was from Marotta.
If the last operation isn't done, it's 18M in our pockets, so yes he did cost...