That is technically true but most of them fought because they were in alliances (the main ones being the Triple Entente and the Triple Alliance) And there were tensions between rivals like France and Germany. So yes technically but only because of the alliances that had been made dragged countries into the war