Mike hi amounts of sugar be reducing my focus during cardio?

Doing cardio for longs periods of time it’s always been a challenge for me. However if I consume large amounts of sugar in the day I find doing any cardio nearly impossible. Do you believe there is a correlation between the amount of sugar I’ve taken during the day and my ability to focus on cardio?