Do I text him ?

We are both currently in a GC about school work, and we are half friends . I want to text him but I don't want it to be weird as I didn't get his number directly ( I got in from the GC) , what do I do ?

Please leave your advice .