Not directly. Trouble in Terrorist Town is a game mode inside Garry's Mod, so what you actually need is Garry's Mod. The mode is not a separate purchase.
Historically Garry's Mod required ownership of a Source title such as Half-Life 2, and older installs still assume that, but the current standalone version does not. If you are on a legacy setup, that requirement may still apply.