atMega 8 on duemilanove

Yes, of course! The boards themselves differ in other ways....
But take care that you select the correct Bootloader when you flash it to the mega8 chip...