To be in a new relationship do you have to be over your EX?

Now that I think about it... I'm just like "wow" we broke up. It's be like 3 months. And I been with my new friend for a month. But I still think about my ex, and he did me so wrong all the time. That's the sad part, and I think about getting back with him, and that's something should never do. And now I have a bf that treats me with respect, and all that and his family loves me and I love them. But it's like I'm constantly comparing them. And I feel like that's holding me back somehow, when I want to go forward with my new bf and treat him how he deserves to be treated. Cause that's how he's treating me.