AFAIK contemporaries feared such an event. E.g. the French had a long list of socialists and labour union leaders to be arrested in case of war.
https://www.firstworldwar.com/atoz/carnetb.htm
I suppose a concerted effort by the SPD in Germany and the left in France could torpedo the war. But...