Yes, having typhoid or paratyphoid fever does not provide lifelong immunity. You can get infected again, which is why vaccination and preventive measures are important.