I am in the middle of a divorce (2023) that will not be finalized until the end of April/May. I was married all of 2022. Should I file as married jointly for 2022?

I am in the middle of a divorce (2023) that will not be finalized until the end of April or May.  I was married all of 2022.  Should I file as married filing jointly for 2022?