Is it legal to record conversations with former partners to use as evidence in Family Court proceedings?

Is it legal to record conversations with former partners to use as evidence in Family Court proceedings?