Health experts say it’s fine to indulge from time to time. In fact, the occasional treat can even be good for you.