Sure, it’s easier (and more practical) to buy a solar cell ready-made but this is much more fun.
It’s easy to cut open a power transistor like the 2N3055 to expose the NPN silicon material inside to make a solar cell. When exposed to sunlight, or household lights, it conducts electricity. The N-type and P-type materials work like a solar cell. The best way is from the Base to the Collector though from both the Base and Emitter combined and then to the Collector also works well. The voltage and current aren’t much but with just a few of them in series you can power a small 1.5 volt calculator.