I assume you mean that the clematis is growing on the apple tree. Probably not a good idea. The clematis will eventually shade out the apple tree and, robbed of light, it will no longer produce apples. The vines may also wrap around the branches of the tree and, basically, strangle them. If it is simply growing nearby and not on the tree then there is no problem.