Flu shots are indeed a vaccine.
I think you're confused by the word "immunity". In the medical sense, it doesn't mean "invincibility". It's a reference to the immune system!