Yes, a bag of broccoli from the freezer can be cooked in the Instant Pot using the same method. Keep in mind that frozen broccoli turns out much softer than fresh broccoli, so don't use frozen unless you don't mind slightly mushy results. If you have an air fryer, Air Fryer Broccoli turns out much better using frozen veggies.