Yes, it is possible, the candidate has to apply for admission first then if he is selected, he can apply for the Visa of that country from that country embassy provided he is in possession of residence permit or any legal title which permit him to apply for the Visa.