Definitely both, In person events allow the opportunity to connect and focus in a more engaged setting. You can't beat the experience or the impact an in person event has. I find in person better for longer/multi faceted events.
But Virtual offers the opportunity to quickly tune in and learn in a setting that isn't too imposing on your regular every day routine/life and is great for quick info sessions.
As a working mom I appreciate being able to log into virtual events so I can still attend where I would have otherwise not been able to. But I also enjoy occasionally getting away from the kids and fully engaging in longer networking type events.