Is it possible to become immune to certain medicines?

I get headaches very often and it seems like no matter which different headache pill i take it dont work. Could my body become immune to them?
3 answers 3