Yep. To contract anything, you have to eat or lick the pigeon, eat or lick its droppings, and the pigeon needs to have salmonella etc, right at that moment.