Broke up with boyfriend. Was I right?

So I just broke up with my boyfriend. Well actually during an hour of conversation he said he wanted to break up because of his gut telling him to do so as well as he is most likely transferring and wasn't able to put in the effort for a long distance relationship. But then later he called and said he changed his mind and that he would change and somehow we could maybe make it work (he was still skeptical). But I cannnot trust him again. So I said no. I cried and he cried because we both really liked/loved eachother. Did I do the right thing?
Broke up with boyfriend. Was I right?
Add Opinion