There are plenty of websites that let you build games for free, so you've got options depending on how you like to work.
Many browser-based tools offer drag-and-drop creation with no cost, which is great for beginners. That said, if you're already skilled enough to code a game from scratch, you may not need those platforms at all, since you can build directly with free engines and your own know-how. Either path works, so pick the one that matches your experience.