Hi gangadhar!
What you want to know is whether
brain tumour is communicable like
cough cold etc,,the answer is a big no.It cant be transferred via air, water,personnal touch etc...Unless a person has susceptible genes he/ she is not prone for developing cancer.The pain you felt probably injection mode will not transfer cancer either.