That is very smart.
My old employer gave me a 3% raise in January and tried to make it some big gift. I left anyway in April for a 50% bump. New company, same level of responsibilities.
The old employer underpays everyone, so that percentage is higher than it otherwise would be, but still.