As long as the battery you create has the correct voltage output and can be connected to your laptop safely, then yes it is possible.
The issue might be with finding the right connection and the laptop being able to read the amount of power it has left etc. I would look at doing some further...