did i do the right thing by leaving him

Rain

hey girls so i was with this guy since july 2018 and we had sex right away and i moved in to his place in august i got pregnant september..

all this time i felt something off in him... he had much paranoia jealousy and control.

i moved out in january and while i moved out his schizophrenia psychosis started coming out and it wasn’t safe to be around him. 2 weeks later i saw him and he grabbed me and pushed me against the wall became abusive. so now i’m not talking to him as he’s loving one day than two days later calls me a slut and says he’s moving on and verbally shuts me down. now i’m debating if i should move to my family 3 provinces away but i’m not sure if that’s to overboard!! some days he says he wants to be there for our son but some days he says he doesn’t. any advice? do you think i did the right thing by leaving?