No, I mean just the leaves, Tomato leaves are toxic.
I'm only interested in growing the apple sized cooking peppers like a green pepper only red, yellow and orange. NOT the Bahut Jalookia or Scotch Bonnet I can't even eat green peppers much (heartburn) but the colored ones are milder with less acid. They just cost 4 x as much. I figured a couple plants in big pots would be nice to try. Outside in good weather under lights in winter. I wonder if they can be "perpetual flowering/fruiting" with heavy ferts and steady light cycle? Daturas flower and fruit continuously with heavy ferts. With Daturas I fertilize with bloom formula in every watering.