Sick baby and mama

Both baby and I are sick I am exclusively breastfeeding so I'm not sure if it ok that I'm giving her tylenol and I'm taking nyquil??