I'm not sure if the dehumidifier would prevent odours being absorbed, sorry
I think instead of dehumidifier, it should be air purifier which helps eliminate odors