It’s unprofessional to suggest that you can only be productive if you are surrounded with friends. I will happily produce with a team made up of people I would never socialize with. It happens all the time as none of my real friends even know how to code. Not once has this impacted my performance.