I think it’s healthy to have clear boundaries with coworkers, they are not the same things as friends.
That said I spend 41 hours a week working, no way I’m not going to socialise with my coworkers. If I don’t make any friends after several years of working at a place I feel I have done something wrong.