Yes. You can get married to an Irish citizen as a foreigner on a student visa. However, your student visa does not automatically grant you the right to remain in Ireland after your studies. You must apply for a change in your immigration status if you wish to stay in the country after your student visa expires.