I think it was the part of the cause but im not 100% sure. Nationalism and Imperialism were both important factors in bringing WWI about.