Security Groups

Can both CIDR and FromGroupID be set at the same time? If so, s/or/and. If not, s/both/either.