It depends on where you found them and what type of wood.
Generally speaking, if its been out in the sun for a few years, its probably pretty safe.
If you found it in the water, its going to have hitchhikers.
I have also heard that conifer wood and its sap is not good for most aquatic setups.
I collect local wood for my tanks all the time.