Is chocolate ok?

Is chocolate ok to eat? I know it has caffeine in it so I wasent sure