Well you can certaily say that his assassination was the key reason which sparked the war, however, there were tensions going on before his assassination. On the Balkans there had been very strong desire for independence from the various nations which lived there, there was general unsatisfaction coming from Germany about its status with colonies, etc.