If you are allowed by whoever is at home to play against strangers online then it is usually OK to play against them on game’s consoles. However, you should only talk to people online who you have met in the real world first.