This may not be strictly related, but my personal experience aligns with that. If I drink coffee after lunch, I get very sleepy and have my usual bowel movements. If I drink it after dinner, I become overstimulated and can’t sleep at all (which I realize is fairly typical). For context, I’m referring to classic Italian espresso.