Yes. Coffee can trigger acid reflux, some people are allergic to caffeine, and many people drink coffee on an empty stomach. All of the above might cause an upset stomach and trigger upper tummy pain.