Are throat infections contagious?

I work at a preschool and I realized on the kiss accidentally coughed on my and spit inadvertently few out of his mouth. In conversation with another staff member I came to find out that the student has a throat infection! I've been having throat and neck pains with trouble swallowing! Is this contagious?