By default, when you install solar panels on your property, you'll still be connected to the main electricity grid. This allows you to draw energy from the utility company when your system is not producing enough power (at night time, etc). It also allows you to send power back to the grid when you produce more than you need.
It is possible to be set up off of the grid with a solar energy system that includes battery storage, but there are much higher costs in doing so. This may also be dependent on local and state laws.