In most instances, yes. Unfortunately, financial difficulty is the cause of many a divorce, and I have even recommended that a consultation with a bankruptcy attorney be part of a divorce strategy.
What is also unfortunate is that the divorce attorneys themselves can sometimes get caught in the process and end up not getting paid.