No, you should not give your dog ANY pain medication unless it is recommended by a vet. Some medications are extremely toxic and dangerous to dogs. Even safe medications can be harmful in the wrong doses. It is difficult to gauge how much pain your pet is feeling, even if you know them well. Please go to a vet ASAP.