Legally you can change your name at anytime. It is apparently a rigorous legal process but probably less rigorous for a woman entering or leaving a marriage.
No problem doing it now but if you wait to do it as part of the divorce, it will probably find it easier, simpler.