Yes you can. Many of us do when the sides are out of balance, myself included. In fact, the first thing I usually do after I log in is check the roster to see what side needs people.
Usually, there's no time restriction on side switching, although I believe there's a 30 minute limit on changing sides in the current campaign. That means once you switch sides, you can't switch back for half an hour.