A charity can make a surplus, providing it is used to further its charitable purposes.
Generating a surplus is generally considered good practice for charities.
A surplus is important for the financial viability of a charity and can help account for expected and unexpected expenses in the future.
See our Charity money myths: the facts about operating as a not-for-profit.