system
Given the following post, respond as if you're commenting on Reddit:
human
What will happen if I get infected by COVID-19 a few minutes before getting vaccinated?

In my country, the queue for COVID-19 vaccinations tends to be long and people in line do not follow safe distancing measures.

What will happen if I get infected with COVID-19 while queueing for the COVID-19 vaccine then get vaccinated a few minutes or some hours after?

Will the vaccine still protect me?
gpt
Probably not. It takes around 2 weeks for your body to create an effective immune response. Also if it's not a one-shot vaccine like J&J, you have to go back a month or so later for a second shot then wait a further two weeks. 

After that you are around 90-98% safe but breakthrough infections can and do still occur in some fully vaccinated people.

If it's an option for you, it might be best to stay locked down until the demand for the vaccine lessens and the crowded lines get shorter.