Margarine would alternate the texture and flavor of the cookie. The cookie will be more cake-y and less crispy if you use margarine.