Unlikely, but it can be. Many solar panels come with a 20-30 year warranty for not degree of output below 80 per cent. So even after the 20-30 year contract is over most panels have much more life ahead of them.
Because solar panels are so easy to maintain and have zero moving parts, they can continue to generate electricity long enough for you home to see a good return on your investment. Newer models expected 50 + years of service life