Yes, you have inform the Maintenance Department of the handling branch and, in parallel, avoid receiving any money from your ex-husband directly so long as you are obtaining a payment from the National Insurance Institute, to prevent incurring debts due to accumulation of payments.