Epidemiology has a long list of accomplishments, including most famously identification of the association of smoking with risk of lung cancer, but also encompassing the identification of many other exposures, medications, and infectious agents as risk factors or protective factors for specific diseases.
FORBES: Does Coffee Drinking Really Protect Against Devastating Diseases?