Yes, IMxRuntimeResponse has several addCookie methods:
https://apidocs.rnd.mendix.com/9/runtime/com/mendix/m2ee/api/IMxRuntimeResponse.html