Can you get the flu even though you had gotten the vaccine?

Yes. Not everybody develops an adequate immune response to the vaccine, you may be infected with a different strain of virus than the one contained in the vaccine, or you may have an influenzal-like illness which is unrelated to the virus.