Short answer: sometimes, but not reliably—and weight is only part of the story. Urban trash cans come in very different designs. A heavy steel or concrete public bin may stay put in ordinary wind, while a plastic wheeled container can roll or tip once it is empty and a gust hits it broadside. Solar compactors and large street bins are often ballasted or bolted down, but cheaper freestanding bins may rely mostly on their own weight.
In a real storm, what keeps a can in place is a combination of low center of gravity, a wide base, aerodynamic shape, secure anchoring, wheel brakes or locks, and good maintenance. A heavy can with a missing brake is not stormproof; a lighter can fixed to a concrete pad can be much safer. Placement matters too: exposed corners, open plazas, and subway grates create wind tunnels that can move bins that would be fine elsewhere.
Cities usually plan for this by specifying weighted bases, fixed mounts, and locking lids, emptying bins before severe weather, and temporarily removing lighter containers from high-wind zones. If you are choosing bins for a building or streetscape, do not ask only “how heavy is it?” Ask how it is anchored, whether it has brakes, how it behaves when empty, and who checks it after storms. Weight helps, but anchoring and design are what make an urban trash can dependable in bad weather.