Break and block

If you have been with someone for almost 3 years and gone through alooooooottttt of shit with them, and you just aren’t happy anymore and haven’t been for months, and you have tried to explain your feelings, is it wrong to just break up with them and then block them right after? Last time i broke up with him (only time ever) it was for my mental health and then i felt so bad because he was so hurt that i got back together with him. I just want to be on my own and grow. i’m tired of being held back.