That is the pattern, just as you will sometimes hear from recovering addicts who end up thanking God for their former drinking, gambling, or violence. They invariably say that it was a huge price to pay, but nothing less would have broken down their false self and opened them to love.