Depends on the location. Southern states in the US and many countries in Latin America have strict rules against rubble that accumulates still water, and you can even get fined if you have a pool and don't keep it clean and treated.
West Nile virus and Dengue virus are serious health hazards transmitted by mosquitoes, and many places try to contain it.