Is it ok to get vaccinated during pregnancy?

Yes. Most vaccines are safe in pregnancy unless they contain a live virus. An example of a vaccine with a live virus is the MMR (measles/mumps/rubella) vaccine.
Depends. It depends on the immunization and and how far you are along in the pregnancy. Check with your ob, the cdc web sight or your local health department.