It is, yes. Totally safe. I believe Vicuprofen is a combination of the two.
I'm on an opoid (Dihydrocodeine) and also and NSAID (Naproxen). There is no interaction, although Naproxen does apparently synergize with opiates. Not Ibuprofen, though.
Absolutely safe in general, unless of course you have an allergy to either. They are often combined both as one compound and in a clinical setting. If you have reservations test them separately first ?