Cannabis does contain THC (tetrahydrocannabinol) and CBD (cannabidiol). THC activates a hormone namned ghrelin, which gives rise to hunger, which in turn give you the munchies.
However that doesn’t seem to be the case with CBD, an ingredient that is becoming more and more common in beverages and CBD-infused food which are trending right now.