flight plan non restictred and non hazardous routes

does the flight plan feature automatically adjust to divert away from military routes, restricted routes, hazardous weather etc.?