Pregnancy junkfood

I’m 30 weeks and today I had a lot of sugar I had some cranberry juice and cupcakes and skittles and my dinner was pizza I’m so stressed that I’m hurting my baby can junk food effect/hurt my baby or cause any issues??? I try to eat healthy but this third trimester is killing me😩