This should work, although I'd discourage anyone from doing it unless it was absolutely necessary.
Also, I've heard that some airlines can take quite a while to actually post refunds to your credit card account, sometimes 1-2 months. So, you might want to take that into account, if it is an issue for you.
d