No, because you need a continual supply of gas to keep having factories, but once you have a solar field, you have it.
Ther rated lifespan for a solar panel is on the order of 20-30 years, but they're still producing 70-80% of their output after that time. They last a very long time - if not destroyed from above.
One of the fascinating things about solar panels is that they continue to produce electricity for many years. Unlike a gallon of gas, once you burn it, it's gone.
Not just that either. Once the current installation has completed its life cycle, the replacement could come from any source - domestic, alternate or original. And since PVs generate DC supply, interfacing even significantly newer generation panels/equipment isn't going to be too hard.
Edit: US has no competitive way to manufacture panels, and with cheap imports, it never develops such industry!