You can use margarine to swap the butter in baking cookies, ghee, or oil. But, the biggest thing is swapping butter will alter the flavor and the texture of the cookies.