Can you claim a principal residence exemption on real estate occupied by a child?

Jim has lived in his home, rented part of it to a tenant, and currently has his son living in it. Will the sale proceeds still be tax-free to him?