Are solar panels worth the expensive charge in the beginning?

Solar panels are very expensive to purchase and install. Is it worth the hassle in the beginning, or is the product too small to make a difference?