Is that mean that I can go any stops on the mapAA on the return leg with this ticket even York-Scarborough-York?
As John has said, that's not the way the permitted route maps work. Though it's not 100% accurate, the easiest way to think of them is to start at the routing point (green circle/square) closest to your departure station. If you have a choice of route (red line) then you have to take one that takes you closer to your destination.
You repeat this process at each routing point until you get to the routing point closest to your destination station.
If a link takes you closer to your starting point, or takes you through a routing point you've already visited, then it's not allowed.
The details are a
lot more complicated than that, especially when your starting and destination stations aren't on the same map. That's why there's a whole section of the forum dedicated to route and fare questions!
Edited to add: Unless your starting, break and destination points are all on the same map, you're best to ask either in the forum or at a train station - the penalty for getting it wrong can be as severe as a criminal record!