Answer:
No
Step-by-step explanation:
The distance from Nick's current spot to the town ahead and back to this spot is 2·8 = 16 miles. Additionally, it is 19 miles back to the gas station, so a total of 35 miles to the gas station via the town ahead. Nick does not have enough gas for that.
If there is no gas in the town ahead, there will need to be a station within 18 miles further on, or Nick will be walking 9 miles to the station he just passed.