yesThey probably would taste sweet, but I wouldn't recommend eating them the point of sweet peas is that they look and smell good in the garden, eating them is surely not an option !
vegetables would be a dangerously misleading answer because sweet peas are famously perfumed flowers grown in most temperate climates round the world but their seeds are poisonous - causing a serious...