Your baby will have some immunity from mom protecting him/her for the first weeks after birth.
However, you can avoid some risk of illness by planning ahead. Frequent hand washing
or sanitizing gel can decrease the passage of common germs. Outings to the store are better at off hours. By the time baby has had the first set of vaccines he/she is ready for a public event.