It's possible.
DP was extremely unhappy in a controlling marriage where whatever he did, he was in the wrong, was stupid, pathetic, everything was his fault. He was told what to wear, what to do/say and even then, he would be in the wrong and nothing was ever good enough. He'd spend weeks being deliberately ignored for no reason he could find out. But he thought that he had to stay, even though he was on the point of making concrete plans for suicide.
He met someone who spoke to him nicely, listened to him without any suggestion of there being a romantic aspect - one early evening, he was dreading having to go home from work because he was going to be ten minutes late thanks to a bus delay (it would inevitably cause his wife to shout and scream at him) she put her hand on his shoulder and told him 'You don't have to feel like this'. He fell in love and within three weeks, he moved out rather than lie.
As it turned out, that person was even more abusive and it was a complete disaster, but she had given him the feeling that he wasn't worthless and a means of escape other than ending his life (he left with nothing but the clothes on his back).
Needless to say, his XW still hates him for it, whilst not remembering that she made his life a fucking misery.
I didn't start dating him until I'd known him for over a year.