Yes, it can work. But IMO partial boils are inferior to full.
Some people argue the about hop utilization being better in full boils over partials but I've never noticed a difference.
Also "In a partial boil, you can tend to have a "cooked extract" taste due to the maillard reactions (similar to caramelization). The wort will also darken. One way to counteract that if you have to do a small boil is to add the majority of the extract late in the boil, or even at flame out. That will leave it lighter colored, and with less maillard reactions." - Yooper
Remember too that you'll have to account for 1 gallon of boil off at least for a 60 minute boil. So, to get 4 gallons of beer (2 gallons boiled water + 2 gallons tap or bottled water), you'll need to be able to boil 3 gallons of water and watch for boil overs!