Research suggests that it matters less how many meals you eat as much as what you eat at those meals. In general, it is good to eat a well-rounded diet of vegetables, meats, and grains. Some studies suggest that eating more smaller meals a day is actually better for weight loss than eating fewer large meals since the induced hunger can lead to over eating.
On the other hand, other studies do not show much of a difference between eating 3 square meals a day or eating more smaller meals. One thing that has shown to be more healthy is structuring your meals so that you are not continuously eating.
In general, it is good to eat nutritious filling foods that don’t leave you hungry afterwards. It is also not good to skip meals unnecessarily, since hunger will lead you to eat more than you actually need. As a result, it also matters how you eat and not just what you eat and when you eat.