in baking, melted margarine could work in recipes that call for melted butter, but in recipes that call for softened butter, swapping in tub margarine may change the texture; for example, cakes will be less tender, and cookies will generally spread out more and be less crisp.