Retirement tax questions

Can repayment be (partially) with shares of stock - value determined at the day of transfer at market's close. ??