Can I take ibuprofen as needed if I'm also on a regular dose of diclofenac?

No. You need to be very careful about taking more than one anti-inflammatory drug. You can develop gastritis or a stomach ulcer.