Yes, there are coffee and espresso flavoured candy. This is a specialty candy and a bit esoteric in many countries but you can find at least half a dozen brands at larger grocers, specialty candy stores or online.
Some better quality brands include Britt's (chewy), Bali's (hard) & Lindt (mocha chocolate bar). The OP's request for candy with an experience similar to coffee is ambiguous though.
There is hard candy, taffe type chewy candies, mocha chocolate (so good) and of course chocolate covered espresso beans. Flavours range from mild & very similar to coffee to intense & almost espresso-like.