If you knew them before they went in, maybe okay. If you “met” them while they were in jail, say if they posted that they wanted to make friends while inside, there’s a risk that they just want to use you for something while they’re in. And will say anything. I wouldn’t.