According to wiki it’s fine https://wiki.openstreetmap.org/wiki/Tag:highway%3Dfootway and I often see sidewalks being marked separately. Also not every crossing is associated with sidewalk.