Yes, constipation problems can lead to painful haemorrhoids. They usually occur during the last trimester and after vaginal delivery.
They are thought to be the result of slowed venous return associated with an enlarged uterus, as well as increased pressure inside the woman's womb.
You can try to prevent their occurrence by consuming fibre in your diet, drinking plenty of fluids and exercising. Treatment to reduce swelling and inflammation is analgesic ointment, rest and cold baths. Astringent anti-hemorrhoidal creams and suppositories with hydrocortisone also help.