Most children under 3 engage in parallel play where they'll play beside another child and might be interested in what they're doing, but their play isn't interactive per se as each of them is largely absorbed with their toys. This still allows them to learn about social interactions because they're watching and learning from their peers.