Yes, absolutely — though the time it takes depends heavily on how ambitious the game is.
A simple puzzle game or a short platformer is achievable solo in weeks using a free engine. Something the size of a commercial release is a different proposition entirely, requiring years and usually a team.
The practical advice is to start deliberately small: pick an engine, finish one tiny game, and let the scope grow from what you learned building it. Most people who never finish a game are the ones who started with the epic.