Yes, in theory, but it’s not necessarily advisable for a few important reasons. Firstly, you need a certified electrician to wire the system to your fuse box.
Secondly, there’s also the consideration that some types of roofs, such as metal, tile, and some commercial structures will require special mounting frames which can make the job more complex. And thirdly, you might run the risk of voiding any of the warranties if you don’t use a qualified installer. But the bottom line is that your solar just won’t work properly if it’s not installed correctly –you might have invested in the top-of-the-range equipment, but you won’t see the benefits if it’s not installed properly.