Is It Better to Buy Property in Developing Areas Before Infrastructure Is Built?

Many housing societies advertise future infrastructure like ring roads, metro routes, or commercial hubs. Do you think buying property before these projects are completed is a smart investment or too risky?