Paying for books and laptop with grandparent-owned 529 - is student reimbursement OK?

Thanks very much!