I am unsure actually as I am not an employer. I am sure it is possible but probably for sensitive jobs like military or something.
Some links if you want to google translate https://www.unionen.se/rad-och-stod/uppsagningstider-om-din-...
There is "duty of loyalty" where you can get sued for leaks etc https://www.unionen.se/rad-och-stod/om-lojalitetsplikt-och-l...