Eating on Hakodate Line

Like the title says,, is it okay to eat on the hakodate line in sapporo while travelling to otaru? Planning a trip there and i was thinking of fitting breakfast into the commute there

by Careless-Chance2920