As long as you have adequate ventilation around the unit and any steam can be vented out and away from the inside of the cupboard in some way then yes.
In a specific example like yours without seeing it it would be hard for anyone to say your set up is ok.
If you need to find a tradesperson to get your job done, please try our local search below,
or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Please select a service and enter a location to continue...
Are you a trade or supplier? You can create your listing free at DIYnot Local