Yes, the CDC recommends that you should be offered the vaccine even after infection. However, you should wait until the illness has resolved and you have met the criteria to discontinue isolation.