Is it bad to mix different size tires on a car?

On two wheel drive cars you can run different sizes front and rear, but on a 4wd or awd car/truck, all four should be the same size or it can F up the transfer case and transmission....