There are many ways by which an animal might adapt to roads, not all of which would require intelligence. A species might, for instance, develop a genetic predisposition against the smell of asphalt, or of gasoline fumes. Any individuals with this gene would tend to stay away from roads entirely, and hence (if roadkill is a significant cause of mortality, and there isn’t a corresponding benefit to crossing roads) be more successful. Or an animal might evolve an armor or other physiological changes of a sort sufficient to protect against being run over (which would also incidentally protect against some types of predators). Or a species might develop more towards a R-selected reproductive strategy, such that those individuals which are killed by cars don’t matter much.
In response to some other posts, evolutionary “learning” does not require any particular individuals to learn, nor does it require that any individual survive encountering the threat. Let us suppose that there is a species of animal, some of which have a tendancy to engage in a dangerous behaviour, and some of which do not. Let us further suppose that this tendancy is in some way heritable. Why they don’t engage in the behaviour doesn’t matter: Maybe they’re smart enough to know it’s dangerous, or maybe they just don’t like the smell of asphalt, for no particular reason. Likewise, how the behaviour is inherited is also irrelevant: It might be genetic, or it might be Mama Animal communicating somehow to Baby Animals to do or not do something.
Now, let’s look at what happens in that population of animals. Some of them engage in the dangerous behaviour, and get killed. Most of the ones who get killed were the ones with the heritable tendancy to do so. All other things being equal, this means that the ones with that tendancy will tend to have fewer offspring, and since this tendancy is to at least some degree heritable, that means that fewer of the next generation will have that dangerous tendancy. So over time, you’d expect to eventually see that dangerous tendancy disappear, and all of the animals would avoid the dangerous activity, whatever it is, even without any individual learning anything.