The material isn't the issue, whether it is MDF, solid cabinet wood, drywall is irrelevant. The failure will be because of the installation. If the lighting says it can be mounted recessed then it is compatible to be mounted recessed, regardless of the material. You will see if you look at a few halogen lights like these that some will only be for surface mounting and some can be used either way.