If my neighbor that I am friends with in real life wants to be my friend online is that okay

Yes, it is perfectly fine for your neighbor to want to be friends with you online if you are already friends in real life. Connect with them on whatever social media platform you feel comfortable with and continue to nurture your friendship both online and offline. Just be sure to set boundaries and maintain a healthy balance between your virtual friendship and real-life interactions.