Not exactly. Natural immunity is more durable and more complete. Vaccines are often "leaky", offering only partial protection against very specific markers. Whereas NI is more comprehensive and long-lasting.
"Leaky vaccines" result in catastrophic situations like Marek's disease.