Eating advice

Is it safe to eat snack a jack in pregnancy as someone told me there really bad! Any advice?