If you were still married ( not legally divorced) by 12/31/2018, you can indeed file your return as Married Filing Joint