No. Viagra works by increasing blood flow to the penis. Ashwagandha helps reduce stress hormones and balance testosterone. But whether that actually helps erectile dysfunction is uncertain.