Married filing jointly

Hello,

 

My husband died in 2023. I filed jointly for that year. I was told by someone I can file jointly for two years. Is that true?

 

Thanks,