Do units gain experience in multiplayer matches?

Basically title. I'm wondering if it's worth taking green units so I can have more of them. I still didn't notice any gaining experience.