Yes, they can. Unless there is a non-assignment provision in the contract which prevents a party from "assigning," or transferring, the contract to another, contracts may be assigned--and commonly are, when a business (e.g. being a landlord) is sold to another.