Generally no — aspirin and ibuprofen are both NSAIDs, so taking them together raises your risk of stomach and bleeding problems, and ibuprofen can blunt aspirin's heart-protective effect; don't combine them without talking to your doctor or pharmacist.
Aspirin and ibuprofen belong to the same drug class (non-steroidal anti-inflammatory drugs, or NSAIDs), so the NHS advises against taking them at the same time because doubling up on NSAIDs increases the chance of side effects like stomach irritation, ulcers, and bleeding. There's a second, separate problem: if you take low-dose aspirin daily to protect your heart, ibuprofen can interfere with aspirin's antiplatelet (clot-preventing) action. The FDA found that 400 mg ibuprofen can attenuate the cardioprotective effect of low-dose (81 mg) immediate-release aspirin when the two are taken too close together, which could undermine the reason you're on aspirin in the first place. For both reasons, this is a combination to avoid unless a clinician has told you otherwise.
Don't routinely take aspirin and ibuprofen together for pain — if you need extra relief, acetaminophen (paracetamol) is a non-NSAID option that doesn't double up the NSAID risk; the NHS notes paracetamol is safe to combine with low-dose aspirin, but ask your pharmacist. If you take daily low-dose aspirin for your heart and occasionally need ibuprofen, talk to your doctor first: for immediate-release (not enteric-coated) low-dose aspirin, the FDA advises taking immediate-release ibuprofen 400 mg at least 8 hours before or at least 30 minutes after your aspirin so it doesn't blunt aspirin's effect (the FDA says occasional ibuprofen use poses minimal risk to that protection, but regular use is a concern). Watch for warning signs of GI bleeding — black or tarry stools, vomiting blood or material that looks like coffee grounds, or severe/persistent stomach pain — and stop and seek care if they appear. People at higher risk (history of stomach ulcers or GI bleeding, those on blood thinners or SSRIs/SNRIs, older adults, or anyone with heart, kidney, or liver disease) should be especially cautious and check with a professional. Do not take ibuprofen right before or after coronary bypass (CABG) surgery, or soon after a heart attack, unless your doctor directs it.
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.