No. Human painkillers should not be given to dogs without first consulting a veterinarian.
Medications such as ibuprofen and acetaminophen can be extremely toxic to dogs, potentially causing kidney failure, liver damage, and gastrointestinal problems. Dogs metabolize drugs differently than humans.
A veterinarian can prescribe safe, dog-specific pain medication and provide instructions on proper dosage and administration.