Yes, a vegetarian or vegan diet can be a balanced diet as long as it includes a variety of foods from all the major food groups in appropriate portions. However, it can be more challenging to get all the necessary nutrients on a vegetarian or vegan diet, so it's important to pay extra attention to your nutrient intake and consider taking supplements if necessary.