You can have all the discussions you want with your boyfriend when you are both calm, but that's no guarantee you both won't end up in the same situation, or worse, when thing are getting heated. The fact that he blocked you from leaving and even considered raising his hand to you is very concerning; he's immature and not in control of his emotions if he doesn't understand how to manage a row, and physical abuse is never the answer.
Also, there's a serious problem with communication if you end up in a massive argument, particularly if it started over something trivial or could be an issue that comes up again in future. Whatever the reason, this is also something that could happen again and it's on the pair of you if you can't sit down and talk things through sensibly. However, he has already lost your trust by threatening you; can it be regained? Just because it's the first time it's happened doesn't mean it's a one-off; anyone who raises their hand, even if he hesitated, has a major character defect.