Yes, it is safe to buy and drink coffee. Currently there is no evidence of food or food packaging being associated with transmission of COVID-19. It may be possible that a person can get COVID-19 by touching a surface or object that has the virus on it and then touching their mouth, nose, or possibly their eyes, but this is not thought to be the main way the virus spreads. CDC notes that in general, because of poor survivability of these coronaviruses on surfaces, there is likely very low risk of spread from food products or packaging that are shipped over a period of days or weeks at ambient, refrigerated, or frozen temperatures. It is more likely that a person will be exposed by person-to-person transmission involving close contact with someone who is ill or shedding the virus.
Consumers can follow CDC guidelines on how to protect yourself, especially the advice on frequent hand washing with soap and water for at least 20 seconds; and frequent cleaning and disinfecting of surfaces.
If you are concerned about contamination of food and food packaging you have purchased from the grocery store, wash your hands after handling food and food packages when you return from the grocery store and after removing packaging from food. In addition, it’s always critical to follow the 4 key steps of food safety—clean, separate, cook, and chill – to prevent foodborne illness. FDA also has advice about safely selecting and serving raw produce.
Additional reading: https://www.fda.gov/food/food-safety-during-emergencies/food-safety-and-coronavirus-disease-2019-covid-19