Should you take worm tablets when you give them to the dog?

No. Not under any circumstances should you take medication prescribed for your dog. If you have concerns, go to your PCP.