There is no direct train between Istanbul and Cappadocia. However, if you wanted, you could take a bus to Gebze, then take the train from Gebze to Konya, and then take a bus from from Konya to Göreme. It seems like more hassle than it's worth unless you're like… super into trains.