Not for both. Northrend requires the Wrath of the Lich King expansion, while Outland belongs to The Burning Crusade and needs that one instead.
Beyond the expansions themselves, level requirements and quest-chain progression also gate access, so owning the content is necessary but not always sufficient on its own.