A Plague doctors mask should need to be filled with extract from flowers to fully negate the effects from becoming infected.
A plague doctors mask without it should not give you automatic protection.
In the seventeenth and eighteenth centuries, some doctors wore a beak-like mask which was filled with aromatic items. The masks were designed to protect them from putrid air, which (according to the miasmatic theory of disease) was seen as the cause of infection.