There are certain places in Amsterdam where you can smoke cannabis, and other areas where you cannot. The Red Light District is one of the few areas where you can, as long as it is outside one of the coffeeshops.
Most drugs are illegal in the Netherlands, and the general rule with cannabis is to carry a maximum of 5 grams and smoke at home or in a coffeeshop.