No, but it is sensible to get independent legal advice, particularly is there are points of contention regarding the division of assets.
If a separation is amicable, parties can still benefit from legal advise as a well drafted separation agreement can capture the terms of the settlement which includes primarily financial matters to avoid any future disputes that could cost thousands of pounds. A separation agreement will provide certainty