Technically, yes. Butter and shortening are interchangeable in cookies and can be used as a one-to-one switch. However, it will alter the flavor of your cookie slightly.