Yes, you can use cocoa powder as a substitute for melted chocolate in most chocolate cake recipes. Just make sure to adjust the quantities accordingly.