In most cases, yes. While treasury stock can be held by companies indefinitely, there may be legal restrictions in some places. On the other hand, keeping a lot of treasury stock for a long time might raise questions from investors about the company's capital allocation strategy.