Yes, it will never again be so easy to find a girlfriend. Yes, it will teach you communication skills that are much harder to develop later on. Yes, in the modern world communication skills are more valuable than tech skills, full stop.
Still, generic advice isn't applicable to everyone, so if you honestly find staying home and writing code more in line with your guiding principle than spending time with a girl, then sure, do that instead.