In the short run sure. But electricity isn't going to get cheaper. Think of it like prepaying your electricity bill for 15 years, and then after that, it's free.
It's interesting thing to consider really. As solar gets cheaper also the cost of electricity generated when solar power is available gets cheaper. So it might even make sense not to install it yourself, but instead buy it when there is inevitable over production. And price at those times might as well be zero.
The problem is that if you ever sell, your home's clearing price won't accurately capture the money you put in, and the value of your solar installation.