Is it safe to take both Tylenol and Ibuprofen together for pain relief?

Is it safe to take both Tylenol and Ibuprofen together for pain relief?