Yes, you can use cocoa powder as a substitute for chocolate in fudge. However, it is important to adjust the proportions of other ingredients such as butter and sugar to achieve the right consistency and flavor.