Yes. Margarine is basically solidified vegetable oil, so you should be able to substitute it in a cookie recipe without a problem.
For most cookies you can't use oil in place of shortening.
Butter or margarine can be a suitable substitute for vegetable shortening in baking recipes.
A suitable margarine substitute for butter in baking recipes is vegetable shortening or coconut oil.
A suitable butter substitute for vegetable oil in baking recipes is margarine.
A suitable substitute for vegetable oil when baking that can be replaced with butter is margarine.
Of course you can make cookies with margarine instead of shortening, I do it with all my cookies. When you use margarine you don't need to grease your baking pans, and I think the cookies come out more tasty.
A suitable replacement for vegetable shortening in baking recipes is butter, margarine, or coconut oil.
There is a large volume of water in margarine. This will make the cookies or anything drier and most likely crumbly. You can use oil in place of margarine in most things, but not the reverse.
Most of the time you can, except when baking. It will be somewhat change the texture of cakes and muffins but you can still do it, but for cookies NO WAY!
Nonhydrogenated vegetable shortening can be used as a substitute for butter or margarine in baking to create flaky pie crusts, tender cookies, and moist cakes. It can also be used for greasing pans, making flaky biscuits, and frying foods.
A suitable substitute for butter when baking is margarine, coconut oil, or vegetable oil.
Substitutes for shortening are butter and margarine in sticks. Use the same amount as called for in your recipe. Keep in mind, plain shortening will NOT be as flavorful as butter or margarine. Do not use soft margarine in a tub as it contains too much water.