Depends on the type of chocolate.
According to the US Department of Agriculture (USDA), a bar of dark chocolate (i.e. 162 grams, or about 6 oz) contains almost as much caffeine as a cup of coffee (resp. 70mg v.s. 95mg).
So yes, chocolate does contain a significant amount of caffeine (but just not as much as coffee. You are more likely to ingest more caffeine by drinking coffee, simply because you drink more cups of coffee than you eat chocolate bars.)
Notice that this holds only for dark chocolate; white chocolate does not contain caffeine.
EDIT:
Notice how, if you click "full report" it lists theobromine separately. Coffee does not contain theobromine, chocolate does (about 10x the amount of caffeine it contains).
Sources: