One can apply and get a visa at a consulate. But there are other important factors that also play important roles in deciding whether one is going to get the visa or not.