It thoroughly depends on what you mean by, “on occasion”. Some people will began to make a habit of cheating. Once every couple weeks wouldn’t do too much damage. But make sure you stick to your guidelines and stay discipline. Don’t make your cheat day every Friday, Saturday and Sunday, because then you’ll stray away from your ultimate goal of losing weight.
Hope this helps,