Is it safe to take ibuprofen and acetaminophen together for pain?

Is it safe to take ibuprofen and acetaminophen together for pain?