No, it didn't. It still had a considarable length of common border with the russian province Finland in Lappland. (To be honest, that was my first reaction too, but as the GP wrote, Sweden stopped to have a border with russia only after Finland became independent in WW1).
I think it's more to the point to say "during WW1". Finland wasn't directly involved.