You can put melted chocolate on top of a cake, but once it firms up, it will not be smooth and thin, and will probably break apart once sliced.