If you're new to investing, you can absolutely start off by buying index funds alone as you learn more about how to choose the right stocks. But as your knowledge grows, you may want to branch out and add different companies to your portfolio that you feel align well with your personal risk tolerance and goals.