H1b I-94 Expiration Date

Hi, My H1b is visa is valid until 09/05/2024. Last year when i was coming back from India at the port of entry the officer mentioned that has my passport is going to be expire on 8/13/2023 so he had shortened my I-94 expiration date according to my passport expiry date. I have applied for passport renewal and got the new passport? Will my I-94 expiry date will automatically change to the date mentioned in the
I-797 I94 date i.e 09/05/2024?