If you will only be using SUM, and the number of sheets changes, then insert two new worksheets, one labeled First, then other Last. Put all the other sheets that you want added between them, then modify the given formula to:
=SUM(First:Last!A1)
This makes it easier to "What If" scenarios by moving sheets outside of First or Last.