Eating boogers is gross but eating your boogers will not give you worms.
I used to eat my boogers as a kid and I never got worms from eating my boogers.
But still eating your boogers is a bad habit that you should try to stop doing because it's disgusting and may make you ill in other ways.
Your boogers are not meant to be eaten although I've heard that eating boogers boosts your bodies immune system but still it's not worth it.
If your kid is eating their boogers you should get them to stop or at least try to get them to stop eating their boogers.
But you won't get worms from eating your boogers.