It's not a bad idea. I have taken many Xmart bikes from the trash to rebuild into a decent bike.
What I can't use that is metal I take in to recycle and pickup a few dollars also.
When somebody needs a tube or tire I have a few good ones for sale also.