I have a friends' gathering coming up where I will have both male and female friends. Is it okay to go if the female friends are observing their hijab?

If there is no possibility of falling in Haram then it’s okay. But unnecessarily participation of woman and men as a mixed gathering just for having fun should be avoided.