For nozzle FEA, is it mandatory to model flange for load application?

Or can we apply loads pipe it self.