It is not recommended. Most pressure-treated lumber contains copper-based preservatives which can cause aluminum, zinc, and galvanized steel to discolour and corrode. Flashing tape and a flexible membrane inserted between the wood and aluminum will offer some protection. You can also safely opt for copper or stainless-steel flashing, or use a different type of wood such as pine, spruce, or fir.