Absolutely. Home warranties are transferable when a home changes hands, just notify the company and it will complete the transfer.
In fact, when selling your home, having or including a home warranty is likely to increase the final sales price. After the remaining term of the warranty, the new owners can simply renew their coverage on an annual basis.