Yes you can, they are not the same medicines. Both are NSAIDs however Ibuprofen does not thin your blood, nor should it cause an allergic reaction if you are allergic to aspirin.
If you are using doxycycline it is recommended that you do not take an antacid withing two hours of taking the medication. I was informed of this by my GP.