No, plastic bags cannot be separated from garbage heap using an electromagnet because electromagnet can attract only magnetic materials towards it. If these plastic bags have metal / iron handles, only then they can be lifted by using an electromagnet.