the gastric juice in the stomach plays a big part in eliminating the microbes - especially bacteria and viruses - in the incoming food, however, it does not kill off everything, there are always organisms that are resistant to the acid
Nonetheless, there are other organs in the human body that detoxify harmful things in food, such as the liver.