Not specifically Half-Life 2, no.
What you actually need is any Source engine game from Valve to run Garry's Mod—and Half-Life 2 is one valid option. As long as you own a qualifying Valve title, you're good to go.