Yes, an enema can be used to treat constipation. But it's considered a last resort and shouldn't be used regularly. Safer ways of treating constipation include: Adding fiber to your diet Drinking more water Getting regular exercise