2023 self employed health insurance

My wife was a consultant to a company in 2022 but retired at the end of 2022.  She received final payment for services in 2023.  Can we include the entire 2023 health insurance premiums to offset that final payment even though she was no longer self employed?