Only if you don't allow them to dry and ventilate correctly.
Not sealing it in someway can be worse (the dust and vapors from MDF have been shown to cause cancer)...but like I said you could always use shelf paper or just paint it and get the benefit.