I can quite reliably send a text or make a call from a pocket, but fine switch a pocket to a purse....
If you can send a text reliably from your pocket (something I've never even heard of anybody attempting), you can unlock it with the 6-digit passcode reliably.