I doubt she is trying not to go poo, rather I suspect she is constipated and just can't go or doesn't want to go because it's too painful. You should try a stool softener suppository you can get at a local drug store.
When there is every a health concern for an infant you should always consult with your doctor. It could be that she is constipated. Your infant should have one bowel movement a day.