Flights are routed to avoid those areas where the thunderstorms present a threat. It is possible to overfly a hurricane if the destination is on the other side of the storm. However, some storms can create turbulence at high altitude and that has to be factored in when choosing a route.