It depends, what car do you have? How many Miles?
It is probably the tranny. It is just making a hard transition, If there are any other symptoms along with the shifting into D4, like slipping or weird shifting while driving you may need some tranny work done. My car does the same thing after backing up and then shifting into D4