Has anyone dealt with unhealthy eating habits(overeating, consuming a lot of sugar etc.) or turning towards food as an escape when they feel more anxious?

Is there any connection between anxiety and food habits?