Potentially, depending on how long ago you installed solar and how you paid for it. It might be difficult to recoup all the costs of solar when selling your house within 7 years of installinging it. Many buyers look for properties that already have solar power installed, because they can pay lower electricity bills immediately without installing the panels themselves. The remainder of the loan will however need to be paid off when you sell the home.