No. Chocolate is made from cocoa, which is the pulverized powder
of the seeds of the CACAO tree (Theobroma cacao). Cocaine is
derived from the COCA plant (Ethroxylon coca).
The same plant yes but different parts. Chocolate is made from the beans or seeds of the coca plant while cocaine is made from the leaves and the plant itself.