This friend evidently meets some needs you have. I think as long as you know the friend is imaginary, then it's okay for right now. But it would be good if you try to start having some real-life friends, too, to meet your needs. My two cents' worth, anyway.