Yes, you can still file a joint return for 2018. The IRS allows you to file as married filing jointly for the tax year, but in the personal heading section, you will need to indicate that your wife passed away during the year. I am so sorry for your loss.