Yes a country's transport policy has an impact. Netherlands has an obesity rate of 1.6% in boys vs 16% in the UK. So getting your kids cycling/walking to school is of massive benefit to the long-term health of your nation.
You still need to deal with the wrong type of calories being delivered into your population.