Is it ever a good idea to time the market?

Is it ever a good idea to time the market?