adding the vegetable question

can i add vegetables like corn and peas to my crockpot soups about 1/2 hour before serving? or should i put them in sooner?