As all things OSM, there are multiple ways of doing it! Yes, you can just add sidewalk to the road, or you can draw the footpath in as either footway or sidewalk eg https://www.openstreetmap.org/way/1024399890#map=18/-28.12920/153.47314