If you buy an index fund it doesn't matter what companies come and go because it's all done for you, or you can match the index yourself.