Yeah its perfectly fine to take ibuprofen with tramadol. The two don't interact with each other. Most doctors will prescribe an NSAID like ibuprofen along with an opiate-type medicine
Please use a drug interaction checker for a question like this next time and if you have a question about a combination that one of those can not answer, direct it to Basic Drug Discussion, not here. PM me if you have any questions