Yes, you can leave solar panels unplugged or unconnected without causing any damage or issues to the system. When the sun strikes the cells, a process transforms solar energy into electrical power, or direct current (DC). Another way to visualize the process is like this.
[PDF Version]