Some people notice an urge to use the bathroom soon after coffee, while others do not. A small study of distal-colon function found increased motor activity after both regular and decaffeinated coffee in participants who described themselves as responders. The finding supports a real individual response without making it universal.
The About Coffee source discusses digestive signaling and the gastrocolic reflex. Those mechanisms are more complex than saying caffeine simply passes straight through the body. A response within minutes also does not mean that the freshly consumed drink has already traveled through the entire digestive tract.
The research does not turn coffee into a reliable treatment for constipation or establish a suitable dose for a particular person. Milk, sweeteners, meal timing and individual tolerance can complicate what someone experiences in daily life. If coffee consistently causes discomfort, reduce or avoid it and discuss persistent symptoms with a healthcare professional. Studies of coffee after surgery belong to supervised clinical care, not a home protocol.

The conversation
A good question can make a better brew.