Assuming the code you modify is protectible in the first place, then yes, this sort of trivial modification or derivative would be covered by GPL and have to abide by its rules.
But just because you slap a license on something does mean you actually can enforce it.
But just because you slap a license on something does mean you actually can enforce it.