You are right!
In addition to what you said, you want to know a few other things before you use pallets for your coop OR any other project.
Standard Wood Pallets will have 1 of 2 markings on the side rail:
HT means the pallet was Heat Treated: it may or may not have been exposed to chemicals during this process - Most people think this process renders pallets safe, but pallets that are HT are more susceptible to molds.
BT means the pallet was treated with Methyl Bromide, a chemical pesticide
Pallets may also be treated with other fungicides and poisons, and you won't even know about it.
Here's a little more info:
Wood pallets are like sponges – they’re porous and readily absorb water and other fluids. This creates a breeding ground for bacteria like salmonella, E. coli and Listeria that can cross-contaminate food. Wood pallets are so unhygienic that the U.S. Food and Drug Administration said they must not be used in connection with food preparation because of the risk of Listeria contamination.
We used to repurpose pallets, but no longer do.