Functional mechanical parts should be no problem - just make sure you select the proper material for the environment, taking expected temperatures, creepage, etc into account.
Dishwasher parts would require caution, for the same reasons 3D printed parts are rarely considered food-safe - the...