No, the point of SGX is to be able to encapsulate a piece of code+data inside a "black box". That black box can the receive input, run the code on that input (for example: decrypt the input using a private key) and return output data. The whole point of SGX is to be able to create an enclave where some data (for example, a private key) can be placed in a secure manner, which is a very reasonable thing to do when dealing with sensitive data.