If I get sick can I still breastfeed?

For example if I catch a cold or even worse get the flu. I know I could use pumped milk if I have any stocked. My baby is 8 days old