Garry’s Mod does not require Half-Life 2 by itself, but it does require at least one compatible Source engine game. According to Steam’s listing, you need a valid Source game to run it. A full list of supported titles can be found here: https://store.steampowered.com/search/?category2=16