Yes, you need a Steam account to play Terraria.
Since Terraria is distributed through Steam, having an account is required to purchase, download, and launch the game. The good news is that creating a Steam account is completely free.