if you eat something that knocks you out of ketosis, regardless of what it is, it can restart the cravings.
The good thing is that you are aware of them. If you are having a craving, drink water and replace the craving with a positive behavior ... dance, run up and down a flight of stairs, kiss your partner or hug your child. Often I think we have cravings but if we distract ourselves, we might find out we were only thirsty.