The CDC recommends that antipyretic or analgesic medications (ibuprofen, tylenol, etc) should not be taken with the Covid vaccine, at least not before or immediately after. This is because the fever and inflammation response are specifically triggers that recruit your immune system into creating the necessary antibodies.
https://www.cdc.gov/vaccines/covid-19/clinical-consideration...