Yes. And you should continue to pay your rent directly to the landlord until officially notified to do otherwise by the court. Until the home is actually foreclosed on, and ownership changes, the owner is still the owner with the full rights of an owner including the right to collect rent. If you fail to pay your rent, you can be evicted. I am not an attorney, but I am a landlord, so, while this is not to be considered legal advice, my practical advice is to continue to pay your rent.