I wouldn't worry about it. Not all socializing takes place in a bar, and people tend to be pretty understanding about restrictions. But every cohort's dynamics are different! Mine doesn't hang out so much as a big group, but have mostly made a few good friendships, with maybe half of us ever hanging out at one time in a typical week or even month. But we do have strong friendships and do things in smaller groups on the side. I do not drink either, and even though I have no restrictions about going to bars, etc. but still have probably only been to one this semester. The majority of things I do with people from school do not center around that. Many of them also have families and are past that stage of life.
Basically don't let the scarf/religion/whatever act as a barrier on your end! Mentally be open to friendships and socializing or you may find yourself in the awkward position of causing the thing you dread!