M.F.
My daughter did it, all of my friends kids did it (regardless of gender, but all were 3 yrs old. There are two ways I've seen it dealt with: 1) Run out of diapers and don't get any more. If she poops in her pants, don't get mad, just come up with a consequence that will mean something to her -- can't go to the mall because you're afraid she'll have an accident so you have to leave her with a sitter...or can't read bed time stories because you don't have any time. Your story time was used up cleaning a poop mess.
2)Keep diapers or pull-ups on hand and simply let her choose where she wants to poop and don't make a big deal about it one way or the other. Don't say a word about it. If she can get them on and off by herself, keep the pull-ups where she can get to them and when she asks to go poop, say cheerily "ok! would you like me to help you potty or would you like to get a pull-up" But the more you fret over it the more she'll drag it out. Remaining emotionless is the key.