Sure!
I do not say that one should eat only vegetables and does not, under any circumstances, eat cakes.
When one tries to keep a STRICT diet sooner or later he/she gives up and eats everything he/she sees. This can lead to weight gain and even depression. Food is one of the sources of pleasure. Our food should be tasty, but it should be HEALTHY at the same time.