I looked it up, this is absolutely real. The original Coca Cola did indeed contain cocaine, which was perfectly legal in the 1800’s when it was invented.

Turns out that the combination of sugar and caffeine are almost as addictive anyway.

Coca-Cola Wiki