Technically yes you can at a lower temperature, but you should always worry about leaving the oven when nobody's there to watch it. A safer alternative would be to make this u003cstrongu003eu003ca href=u0022https://dinnerthendessert.com/slow-cooker-brown-sugar-pineapple-ham/u0022u003eSlow Cooker Brown Sugar Pineapple Hamu003c/au003eu003c/strongu003e recipe, with an uncooked whole ham, on low for 8-10 hours or until it comes to temperature. There's no need for basting because it will self-glaze in the slow cooker by itself.