All green plants, in the presence of chlorophyll, can make their own food from carbon dioxide and water.
Parasitic plants like Indian pipe depend on the host plant for their food.
Pitcher plant is also a green plant and performs photosynthesis. But they grow in nutrient deficient soil. So, they trap insects and obtain nutrients by digesting them.