As long as you don't provide them any personal information about yourself, such as your actual name, IP address, or residential address, there's no reason why it shouldn't be okay to do. Whether you do that, there is no question that it is dangerous to play online games with strangers since you will never know if the individuals you are playing with are nice or evil.