The Centers for Disease Control and Prevention (CDC) recommends waiting 14 days after receiving another vaccine to get the Covid-19 vaccine. Similarly, the CDC recommends waiting 14 days after receiving the Covid-19 vaccine to get another vaccine.
But if you accidently get a Covid-19 vaccine within two weeks of getting another vaccine, you should still get your second Covid-19 dose according to the recommended timing.