Generally there are licences required to collect materials from the wild. Does depend where you are though.
As for is it any good, depends what the water source is and what you want to achieve. It'll likely be high in organics etc (rivers are rarely good visibility that we like in out tanks) so a great planted media but may not be good for water quality.
The most important issue is disease. Importing anything from an area that contains wild fish risks importing illnesses, which is the main reason I wouldn't consider it.