Hi, Yes, cremaffin can be taken to treat constipation. All medications are advised with caution during pregnancy. But cremaffin is not known to cause any complications or side effects. Only concern is it could be habit forming and you could get dependent on it. But if you have pills and constipation, it is advisable to take cremaffin rather than suffer from the pills. You can get definitive treatment for piles after delivery. Hope this helps. Regards.