They won't affect your water quality, as long as you keep the substrate clean and the water changes regular. But I totally agree with Jinny. Planaria feed on leftover food.
However, they may not be planaria at all. Planaria are pretty obvious: about 1cm long, wide, two eyespots, white or brown.
You could (and should!) have any number of microorganisms in your tank. It's normal to have 'bugs' crawling around inside your tank. For the longest time I had these small white thread-like worms on the glass of my tank, but they appeared to be eating algae, so I didn't bother them. They eventually went away. I've also had glassworms in my tank, which are clear-ish, and are gnat larvae. If you get a sample of a well-established tank and look at it under a microscope, it's swarming with stuff.