No go take the other side path, MOVE! away the block from in front of the pipe. There is a closed cannon on the other side. To unlock it, take the other pipe from the area, where you pushed the block away and push the red button. This unlocks the cannon. Take the cannon. It will shoot you to the yellow blocked door area on the other side.
Now go back to the Spooky Square, placing the Ghost on the pedestral, the Plant Gate opens. Take the side gate to the left. Go down. At the right, there is an alley with a statue. Put it on the Red Pedestal.