Vaccines have to be thoroughly tested for safety before they're made routinely available.
Each vaccine's safety is continually monitored, even after it's been introduced. This is because not all side effects are picked up during the vaccine's development, especially if they're very rare.