Taking them may interfere with the purpose of getting a vaccine in the first place....to generate strong immune response by creating antibodies.
Now if you are on painkillers all the time check with your doctor to see if it is safe.
You take the vaccine then take a painkiller and wipe out the purpose of the vaccine.
Not too smart.