No, your hosting files aren't automatically deleted just because your domain expires.
However, visitors may no longer be able to access your website through that domain. Your hosting account and website files can remain active as long as the hosting subscription is valid.
The important thing is to renew your domain before expiration. If you leave it too long, you may eventually face additional renewal fees or lose the opportunity to renew it.
I'd also recommend enabling domain auto-renewal and keeping your registrar contact email updated.