Yes, you can use melted chocolate instead of cocoa powder.  However, depending on the recipe you’re planning to make, the texture difference between cocoa powder and melted chocolate could impact the final result.  Cocoa powder is dry, while melted chocolate is more liquid-y and may contain other ingredients, such as milk, sugar, or vanilla.  You may need to adjust the other ingredients in the recipe to make up for the change in consistency.