In this recipe I would not recommend swapping margarine for butter. The cookie will spread more when you bake it so it will be less fluffy and more thin.