tl;dr it's complicated.
As you already said, one Bosnian Serb (which btw declared himself as Yugoslavian, like many members of his Mlada Bosna (Young Bosnia) organization) kills one tyrant, then AH and Germany attack half of the Europe, and Serbia and Gavrilo Princip are guilt of WW1? Makes no sense to me.
How could it not consider such a, ahem, small detail?
A lot of domino stones had to fall for WWI to happen. By the way, I can recommend "The War that Ended Peace", excellent book about the causes of WWI.
That's not the impression one gets from the popular literature (thriller romances, etc.) of the preceding years. For instance, it is obvious that the English were expecting a naval clash with Germany sooner or later.
What was unexpected was the prolonged slaughter of trench warfare. The previous war of 1870 had been a relatively quick affair ...