Yes, you should be vaccinated even if you have had COVID-19 as the vaccine will boost immunity to the virus.

After mild COVID-19 you can have your COVID-19 vaccine 30 days after recovering from the acute infection. This is usually around 40 days after your first symptoms.

After severe COVID-19 (needing oxygen) you need to wait 90 days for your vaccine.