Yes, they can. Wasps have a strong sense of smell, and they use it to find food, and mates, and even detect danger or dead members of their colony.