Yes, but there's a catch. Solar panels can meet your total yearly energy needs, but the amount of electricity they generate changes each month. In summer, you might produce more energy than you use, and that extra goes back to the grid. During monsoon season, you might generate less, so you'd need to pull some energy from the grid. To be completely self-sufficient 24/7 without relying on the grid, you'd need a costly battery storage system.