I wouldnt give a dog any kind of human medication without first consulting a vet. You dont know what doses they should have and giving them too much could be lethal. Just call a vet office and they can let you know what to do.
The answer to your question is yes, however, you should consult with a vet first, because it is true that ibuprofen can cause kidney damage to your dog. Naproxin is toxic to dogs if certain doses are exceeded.