Bags of soil can pick up pests anywhere... in the warehouse, at the hydro store, on your patio. You can't just throw it away because it MIGHT have a few bugs in it. Well, you can, but it would be kinda goofy.
Use it. If you develop a problem, learn how to deal with it if and when it manifests...