Yes it is. A stock buyback increases shareholders' wealth with a tax of 0% on the shareholders.
The tax code makes a bright line out of the distinction between income and capital that is, economically speaking, quite fuzzy. Depending on your need for liquidity and your means of acquiring it, it might not be really there.