Yes. The CDC has advised that you can receive your COVID-19 vaccine even if you have received another vaccine recently. You can even receive other necessary vaccines on the same day you receive your COVID-19 vaccine, like for the flu or other diseases.
People who are actively sick with COVID-19 should wait until they have recovered and can no longer spread the virus before getting their vaccine. Once you have recovered, it is safe to get vaccinated with any COVID-19 vaccine if you have been infected in the past.
If you were treated for COVID-19 symptoms with monoclonal antibodies or convalescent plasma, you should wait 90 days before getting a COVID-19 vaccine. Talk to your doctor if you are unsure what treatments you received or if you have more questions about getting a COVID-19 vaccine.