If there's a sidewalk present there are tags to indicate that. Notably, in Texas, walking on the shoulder of a road is legal when there is not a sidewalk, with the exception of controlled-access highways and roads which have signage indicating otherwise.