Lot dress code

Ok I have a restaurant I made a while ago that has a formal dress code. And ppl dress formally when they go. Can we not do that for clubs?