It is considered safe to get the vaccine even if you have or recently had COVID-19 infection. The vaccine will increase your protection even more from future COVID-19 infections.