In large enough amounts, chocolate and cocoa products can kill your dog.
The toxic component of chocolate is theobromine.
A large dog can consume more chocolate than a small dog before suffering ill effects.
A small amount of chocolate will probably only give your dog an upset stomach with vomiting or diarrhea.