A memory foam mattress can be bad for allergies if it is not made with hypoallergenic and organic materials. In order to ensure your memory foam mattress is allergy-free, invest in a mattress cover with a zipper or a dust mite cover that acts as an encasement.