The job of vaccine is to train your body for infection.
It reduces the severity of the illness incase you ever catch covid. IT DOES NOT PROTECT YOU FROM COVID, IT ONLY REDUCES THE SEVERITY OF ILLNESS.
coming to second part of the question. Your immunity builds up within a few days after the first dose itself. The second dose is to remind the body after a certain time interval.
Next Steps
Any covid vaccine doesn't protect you against corona, it only reduces the severity of the illness or rate of hospitalization.
Health Tips
Always wear your mask
Stay safe