No, it's NOT ok :-(
Warts don't necessarily mean bad on dogs, but they can be. Go to a veterinarian and ask them. They'll show you how to treat them and determine if they are indeed harmful.
Giving people medicine and foods to dogs CAN be fatal, so it's best to ask a few veterinarians and do some research first with at least 5 different sources. With my veterinary experience I think it would be wrong and harmful if you proceeded to give that wart medicine to your dog.

