Yes, solar panels can be used to power a whole house. You simply need enough solar panels to meet your energy requirements. There are limitations however as often there is not enough space to mount solar panels in a sunny area. Plus, you won’t generate electricity at night so you need to fall back on the main grid or store energy in batteries.