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