What do you mean by inaccessible ? In general, edits are supposed to reflect real-world objects and layouts rather than simply help routers. There's more informations on the basics good practices here https://wiki.openstreetmap.org/wiki/Good_practice. Specifically here, the proposed way crosses over a curb so the routing proposed by any router using this way would indicate for a user to cross the curb. I'm curious why you suggest adding a way rather than adding bicycle=permissive tags to the existing pedestrian crossings ? Most routers that have a destination that isn't directly accessible from a path route to the nearest point on an accessible way. 