No, the Titanic was not taller than the CN Tower—not by a long shot.
You could stand the Titanic on its stern next to the CN Tower, and the ship's bow would reach only about the tower's skypod (at 346 m). The tower is more than twice the ship's length and over ten times its vertical height.
People sometimes compare the ship's length to the tower's height, or imagine the Titanic as a vertical object. In reality, the CN Tower is one of the world's tallest freestanding structures; the Titanic was a large ocean liner, but horizontally oriented.
Apples to oranges—but the tower wins on verticality every time.