Can any pill be taken vaginally and still be effective?

No. Medications are designed to be used in very specific ways. Pills that are designed to dissolve in the stomach or in the small intestine don't work properly if put in the vagina or rectum (may be irritating to the vagina or rectum; and one cannot tell how little or how much of the medication would be absorbed).