Most are pine but look at the markings on the pallet. You can identify any chemicals in the wood online via the markings.
Pallets are endlessly recycled. Some may have nasty chemicals embedded