"Can you have opposite-sex friends while in a relationship" is a question that has no answer, because the answer depends on each of you two's range of comfort, not on any universal standard. What works better than arguing about right and wrong is turning the boundaries into three concrete agreements.

First, information transparency: which interactions you need to notify about beforehand. Eating alone, long private chats, late-night conversations, emotional dumping — telling him costs almost nothing, and it eliminates most of the suspicion. Second, the limits on behavior: which things you don't do one-on-one. Everyone's line is different, but saying it out loud is far more useful than arguing afterward about "what's the big deal." Third, the order for handling feelings: when one of you says something makes them uncomfortable, listen first, debate reasonableness later. Doing it the other way around — deciding first that the other person is being sensitive — will almost always escalate conflict.

One more thing worth mentioning: boundaries are two-way. If you demand them but don't hold yourself to the same standard, the agreement rots fast. The most durable form is for both of you to write the three out together, then follow them — the act of writing itself is already a very effective communication exercise.