Yep. In O-chem lab many years ago one of the first things we did was "alkaloid extraction", where we pulled caffeine from tea bags, which was a yellow, clumpy powder, which we then washed out the impurities and it was a clean white crystal. Caffeine is in the same family as meth, and the process is similar.
The teacher joked that she used to teach in San Bernardino and there were a lot of chemicals that the department never had to buy because the police would turn it over after raiding meth labs.