Motion sickness

Can I give my 2 year old gravol before our 5 hr train ride? We went on a plane before & he puked, lol.