I don't know if it will stop them from pooping on the floor. I've never had that problem. Luckily even the strays that I have taken in have all used the box with no issues.
I always just kind of followed them around, and when I saw them take the poop stance, I picked them up and stuck them in the litter box.