While unsalted butter is recommended for the best flavor and texture, margarine can be used as a substitute if necessary. Keep in mind that the taste and consistency might vary slightly.