No, they look more like white worms to me. Fungus gnat larvae have a dark head and they also aren't that long.
They're not harmful to your plants.
However it could be that uncomposted materials are in your soil.
I've only ever seen white worms in my wormbin, they turn up when there are large amounts of food about and then disappear again.