There would be no legal issue from the point of view of your divorce and any support, etc. obligations from it: you would be providing or arranging for the insurance, so you'd be fulfilling your obligations. As long as coverage is provided, you would be fine.