WEIGHT CHANGES EFFECTING CYCLE?

My cycle of 28-30 days changed to 34-38 days so I went to my doctor. She put my long cycles down to stress and not eating. I’ve since got back to my normal weight (I’m assuming, I don’t own scales lol) and got my period on day 30 of this cycle.

Does anyone else’s periods change with weight loss/gain or should I be going back to the doctor?

Hope that made sense :)