Yeah, this would be a perfect scenario.
If we beat Real once and we lose the other match, while at the same time Bate gets one draw with Zenit, then we'll have 7 pts while Zenit will have 4 pts.
In this situation we can even allow a 2:1 or 3:2 defeat away to Zenit and go through on away goals...