Can you take Ibuprofen with penicillin and flucloxacillin?

Hi, i was told by my doctor that ibuprofen was fine to take with with my flucloxacillin.