Leeds and Goole are both routeing points, so we don't need to undertake a fares check.
Permitted routes can be found on Maps DO and HL.
Map DO gives Leeds - Doncaster - Goole
Map HL gives Leeds - Selby - Gilberdyke - Goole
So yes, travel via Gilberdyke is perfectly valid.