What time of marriage qualify for joint filing?

For example, if a couple get married at the beginning of 2019, can they file jointly for federal income tax of year 2018?