That's not historically accurate.
The assassination of ArchDuke Ferdinand was just the spark that set off the powder keg. Germany, Austria/Hungry, Britain, etcetera had all been trying to get the war going for years. That just happened to be the event that sparked it.
Between mutual defense treaties and military build ups, WW1 was inevitable, because everyone wanted it until it actually started.