Take the vaccine.
You probably must have received tetanus vaccine shots and booster doses as a child. Those will protect you to a degree.
However as it has been more than 10 years following those shots, it is recommended to take a booster dose now.
Repeat the booster dose every 10 years.
Health Tips
Next time, if you have an injury, please take a booster dose within 72 hours of the injury.