Most online games with unfiltered text or voice chat allow any kind of conversation, and that freedom comes with real risks worth knowing about.
General-purpose multiplayer titles and browser-based social worlds tend to have the least restricted communication. Some are explicitly 18-plus, and age verification is inconsistent at best across the category.
Unsolicited contact in open chat is the main vector for grooming, harassment and scams. Voice chat is worse than text because it cannot be moderated retroactively. Anything you type or say can be recorded and shared, permanently.
Keep your real name, school, location and contact details out of any game chat. Use a dedicated email address for gaming accounts, never reuse passwords, and turn off voice chat with strangers if a game lets you. If someone pushes to move the conversation to a private app quickly, that is a warning sign.