Yes and I for one did, with someone who just let their dog foul outside my front gate, I followed them home and tipped it on their front garden, telling them they had forgotten something. This person hasn't been past my house since, sadly they are probably allowing their dog to poo outside someone else's house.
I have called the dog wardens on numerous occasions too, but all they say is unless I can give them proof of who the perpetrator is there is nothing they can do. So about as much help as a chocolate teapot. It is £1000 fine in my area but has made not a jot of difference.
Bringing back the dog licence is a good idea in theory, but again only the responsible owners would purchase one as previously.