Can’t stop eating sugar!!

I’m in my last trimester & I can’t stop eating sugar?! I’ve been fairly healthy throughout my pregnancy. I’m worried it’ll harm the baby?