In some cases, yes. Some state programs, like Maryland's SmartBuy program, offer student loan repayment assistance as part of the home-buying process. But these programs are not common, and eligibility requirements vary.