Hemorrhoids can cause or contribute to constipation. In some cases, they may even worsen it. However, the reverse is also true, with constipation being an underlying factor for developing hemorrhoids.