Technically, of course, there is only one answer to your question, and it is one word: "Yes." Here is a site that documents the fact that, among others, the vegetables known as greenbeans, peppers, squash, and cucumbers contain seeds. Some we eat, some we don't.