You can marry him if you both fulfil the conditions laid down in law -- the proper age, giving 6 months notice, proper documents - passports etc, having witnesses etc. It does not automatically give residency to a non-Irish husband.