Answer
Generally speaking, you can be infected with the coronavirus multiple times. Having had the disease or (in particular) being vaccinated will protect you from developing a severe case of it; but neither of these will offer more than modest protection from (re)infection.