watchdog timer with a ATtiny 84

hi there will this watchdog time code work on my ATtiny84?

#include <avr/io.h>
#include <avr/wdt.h>

void setup()
{
MCUSR=0;
wdt_enable (WDTO_8S);
}

void loop () {

// do some stuff here

wdt_reset();
}

The only reason I ask I have this code on one of my ATtiny84 and it still freezes from time to time?

Any one lol