Yes, a chest freezer can be kept in a cupboard. However, it is best to think about other options. They are not well-ventilated, unlike pantries, and can harm the freezer by overheating the motors. However, if you insist on putting a freezer in there, leave the doors open.