Yes. Foreign nationals can legally marry in Italy via a civil ceremony conducted at the local Comune. The process requires advance paperwork including a Certificate of No Impediment from your home country. Alternatively — and more commonly for international couples — you can hold a symbolic ceremony in Italy (not legally binding) and marry legally in your home country before or after. Both options are fully valid.