For some infectious diseases, such as chickenpox or measles, once you have been infected and recovered, you typically develop immunity and are unlikely to get the same disease again. However, immunity can vary depending on the disease, and for some infections, reinfection is possible.