I don't recall craving sweets coming off of opiates, but I definitely craved them coming off alcohol. As sugar stimulates chemical reactions in the brain similar to certain drugs, it probably is not a bad thing to indulge your cravings -- so long as it doesn't get out of hand.
Peace & Love,
Sugah