Yes. Playing and completing quests earns gold, and that is the intended way to build up a balance.
You can also buy gold directly if you would rather not wait. Both routes are legitimate; anything promising a shortcut from outside the site is not.
If you are a younger player, it is worth keeping your account details to yourself and letting a parent handle purchases. And a friendly reminder that "I will report you" is not how the game's systems work — quests and the shop are.