Can you use the same toy for anal and vaginal penetration?

I don’t mean going back and forth between them in the same session without the toy being cleaned, I know that’s a huge no no, but could I use a silicone or glass toy for both as long as they’re cleaned before and after using in either? Do I need separate toys?