Is it ok to take vicodin while taking doxycycline.

Yes. Check out http://www.Drugs.Com/interactions-check.Php?Drug_list=940-0, 71-747. Ideally, your should always tell your prescribing doctor everything that you're taking, prescription or otherwise. Also, try to get all your prescription medications from one pharmacy so that pharmacist can also check for interactions. In other words, this question is best asked of your doctor & pharmacist.