Not necessarily, but walnuts and chocolate are a flavor match made in heaven which is why this recipe is a classic. The walnuts can be substituted for other nuts such as hazelnut, pecan, or pistachios.