This isn't true. Most pallets are heat treated now and can be distinguished by "HT" on the side.
You should still be careful about selecting and working with pallet wood. They can be subject to hazardous spills and can have random debris embedded in them that will damage blades.