No, the Earth does not rotate in both directions. The Earth rotates in a consistent and continuous manner in one direction, which is counterclockwise as viewed from above the North Pole. This rotation is what causes the cycle of day and night.
The direction of Earth's rotation is determined by its initial conditions during its formation, and it has maintained this rotational direction for billions of years. Barring any catastrophic events or major external forces, the Earth is expected to continue rotating in the same counterclockwise direction for the foreseeable future.
It's worth mentioning that there are celestial bodies in our solar system that exhibit retrograde rotation, meaning they rotate in the opposite direction to the majority of other bodies. However, the Earth is not one of them.