You can switch between public teams at will. For private teams, you need to leave your current team and then apply to join.