IMO not to a massively significant extent. Coffee “beans” are the pits of berries that grow on bushes. These berries are picked, dried, depulped, washed, dried again, the pit is shucked of its outer husk, then dried some more before shipping to the roaster (I may have parts of the order off, I’m working from childhood memory, growing up in a coffee-producing area.)
Then it is that the “beans” are separated: some will be roasted to be factory-ground, some will be roasted to be shipped whole, the best batches will get specialy roasts. Folgers regular blend (not any “specialty” varietal) “beans” will arrive at the forward end of the roaster all in the same condition re: non-coffee matter in the batch, and it’s mostly stubborn bits of berry skin and pit husk that refused to be shed in the pitting/washing/drying, and general foreign matter you’ll pick up in agricultural processing. The roaster itself will burn off some more of the contaminants, but a further difference in "foreign matter"may result from the shipping of whole ‘beans’ as that gives any remaining residue a further chance to shake loose.
(Here in PR, the picking of the coffee berries is strictly by hand – no big automated machines that blindly rip off whole branches of the bush, a human being picks the berries.)
Something that IS very likely to happen is that when you get batches of over- or under- roasted/dried “beans”, or just an overall inferior batch, this gets thrown in the hopper of the grinding machine, lowering the quality of the blend. And, of course, ground coffee goes stale much faster – essential compounds will evaporate out, or be attacked by oxygen, much faster in grounds than in a whole seed. That’s partly why if you find yourself with too much preground coffee it’s advisable to freeze it.