no, cops DO NOT have any right to reach into your pockets, unless they pat you down and feel something that is obviously a weapon, which a pipe is not. they can pat you down, and they can ask about contents of your pockets, but if they don't feel an obvious weapon then they can't search .. if they feel a gun, then it is clearly a weapon, giving them the right to search, a pipe does not grant them the same the same right, unless your pipe happens to be shaped like a gun :P

even is the officer thinks that your pipe feels suspicious, it is still clearly not a weapon, and he has no right to reach in your pocket based on that suspicion, he can ask what is that, but all you have to say is that its not a weapon, if he reaches in your pocket anyway then go ahead and let him, get a lawyer, keep quiet, the charges will be dropped due to the violation of your 4th amendment rights