Yes, the caffeine in coffee can stimulate contractions in the colon which can help alleviate constipation. Coffee also promotes gastrocolic reflexes which signal the urge to have a bowel movement. The chlorogenic acids in coffee also have a laxative effect. So a cup of coffee can often help relieve mild constipation.