I'm so sorry for your loss.
Yes, if your spouse was still alive as of December 31, 2018, you should file your 2018 return jointly with your late spouse.
- Since your spouse died in 2019, you'll also file jointly, in 2019, with your late spouse unless you remarry in 2019.
Additional information: How should I file my return if my spouse recently died?