Yes — ibuprofen and omeprazole are commonly taken together, and a PPI like omeprazole is often prescribed specifically to help protect the stomach from ibuprofen, but stick to the lowest effective ibuprofen dose for the shortest time and check with your pharmacist.
The two drugs work in different ways and are not expected to interact dangerously: ibuprofen is an NSAID that eases pain and inflammation, while omeprazole is a proton pump inhibitor (PPI) that lowers stomach acid. Ibuprofen and other painkillers are not on the NHS's list of medicines that interact with omeprazole (that list covers things like warfarin, clopidogrel, digoxin and diazepam). In practice, a PPI such as omeprazole is frequently prescribed alongside NSAIDs precisely to help protect the stomach lining from the irritation and ulcers that ibuprofen can cause — so this pairing is often deliberate rather than risky. Omeprazole reduces, but does not eliminate, ibuprofen's risk to the stomach.
Take ibuprofen with or just after food (or a glass of milk) to reduce stomach upset, and use the lowest dose that works for the shortest time — the NHS says the risk of serious side effects, including stomach ulcers and bleeding, is higher if you take a high dose or take it for a long time. Be cautious or talk to a doctor first if you are over 65 or have ever had a stomach ulcer — the NHS says you should check with a pharmacist or doctor before taking ibuprofen if you have a stomach ulcer or have had one before. Get urgent medical help if you notice warning signs of a bleed: severe or persistent tummy pain, vomiting blood, or poo that is black, sticky and tar-like. If you find you need regular pain relief or are taking ibuprofen for more than about 10 days, check in with a pharmacist or doctor rather than continuing on your own.
This is general reference, not medical advice, and not a guarantee of safety. Interactions depend on your doses, health conditions, and other medicines. Always confirm with your pharmacist or doctor before combining products, and follow the dosing on each label.