Yes to both sentences but they are different. They are carefully crossing the road - the are crossing to the other side of the road. They are walking on the road - There is no path (sidewalk - I think in the US) so they walk on the road in the direction of the road.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.