Not sure but I know root aphids can. Adult aphids looks very similar to gnats. Try to catch one without smahin it and look at it with mag glass and compare to pics online.
Monterey garden spray (spinosad) works great for mites, gnats, aphids. Not harmful to humans but detroys bugs. Can even be used into late flower but wiuldnt recommend it cuz it smells pretty bad.