If OP is asking about withdrawing non-qualified 529 funds now based on scholarships received in prior years and paying income tax on the earnings but claiming an exception for the 10% additional tax (“penalty”), than yes, the general consensus is that you can do that.
See “Mistake #6” in the linked article: