It depends.

Producers can receive some music publishing royalties if that is what is negotiated in the publishing agreement. Sometimes high end producers will insist on taking a percentage of the tracks that they produce.