It is generally okay to be friends with someone online if you already have a real-life friendship with them. However, it is important to remember to always be cautious and never share personal information with someone online that you wouldn't share in person. Make sure to only accept friend requests from people you know and trust. It's also a good idea to talk to your parents or a trusted adult about your online friendships to ensure your safety.