Yes, you can and should get the vaccine if you previously were infected with the COVID-19 virus. The CDC recommends you get vaccinated even if you have already had COVID-19 because you can catch it more than once. While you may have some short-term antibody protection after recovering from COVID-19, there is some uncertainty over how long this protection lasts.
The CDC recommends that you get vaccinated even if you have already had COVID-19 because you can catch it more than once. People who already had COVID-19 and do not get vaccinated after their recovery are more likely to get COVID-19 again than those who get vaccinated after their recovery.
You can receive the vaccine any time after you are done with your isolation period and your symptoms have resolved, but since you have antibodies for that 90 day period and re-infection is not likely during that timeframe, you can choose to wait until after 90 days to get immunized.
To learn more about COVID-19 vaccinations after infection, please visit Frequently Asked Questions about COVID-19 Vaccination.