Question: are newt and hagrid friends?
Answer: They didn't study at Hogwarts at the same time and had probably only a few friends in common; after all, Hagrid got expelled in 1943 and spent the next years as Ogg's assistant. Maybe they met each other when Newt visited Hogwarts, which is likely considering his warm relationship with Dumbledore.