Gas and latching

Alison
My 3 day old baby girl has horrible gas . Is it from a bad latch ? Also will it cause to not want to eat ?