Of course the end zone is surrounded by an "out of bounds." Or else a receiver could run as deep or as wide as he desires in order to catch a pass. The rules for a reception in the end zone include the requirement that the receiver must have and maintain possession of the ball BEFORE GOING OUT OF BOUNDS.