Am I a bad person?

I love my boyfriend but he is such a jerk sometimes I want to prepare myself for if I have to leave him. Like is that horrible of me? I just want to learn to be okay if something does happen so I won’t be so devastated! Am I a bad person for wanting to be okay without my boyfriend while I’m still with him?