Did I do the right thing?

Hi girls
I recently dumped my boyfriend but don't know if I did the right thing. 
We started dating a couple of months ago and making out was the farthest we went as I thought I wasn't ready for sex yet (thank god I didn't lose it to him). He was so understanding and was willing to wait and he was a caring guy and he pretty much was everything I wanted. We went on spontaneous "dates" and had little adventures and everything was going well. Until, it started with him judging the amount I eat. Now, I'm quite athletic, I gym a lot and play a lot of sport so I have to eat a lot to keep my fitness. However, he wasn't happy with the amount I was eating and started ordering for me when we went out and told me to control what I eat. I explained to him that I needed to eat because of the amount of physical activity I do, then he told me to stop playing sport. I was like "no way" and argued with him. Next he said "fine you can play but don't play on mixed teams anymore, join an all-girls team". I finally understood where he was getting at. After that, I went out for a movie with my high school friends because we hadn't caught up in a long time and the next day he was so pissed because there were guys there too. I again tried explaining to him that we all went to the same high school but he still wouldn't listen. He said I wasn't allowed to go anywhere without him. At this point I was on the verge of dumping him but what made me confirm my decision was this incident: I'm studying medicine and want to specialise in forensics. I got selected for this training program held in America and I was really excited as it could be a good start to  my career. I was so excited and told my parents who were very happy for me. I then told my boyfriend and the first thing he asked was "will there be guys going" and I was like yeah of course then he was like "you can't go" I asked why but he just said because he didn't want me to. That's when I decided that I could no longer be with his insecure ass and dumped him. 
Was this the right decision? He was such a caring, understanding persona but at the same time he was insanely insecure. Did I do the right thing be leaving him?