Is it safe to take vicodin and erythromycin at the same time?

Yes. Be mindful of any side effects from either medication that can become additive and problematic. As long as you can tolerate each med then there shouldn't be any issues.