Yes, you are still considered to be married for the entire year of 2024 (when your spouse died) as long as you did not remarry to someone else.
You can choose to use Married Filing Separate or Married Filing Joint filing status for 2024.
See the following information from the IRS to learn more:
Publication 4491
My condolences for your loss.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"