Is the downspout supposed to connect to the PVC pipe?

I am not sure what the PVC pipe is for, but I assuming it is a weeping tile connection, and would like to extend it to connect into the pipe.

(I know about the awful state of the brick - this is my neighbor's house and I would like to help them to the extent I can by at least connecting the downspout.)

Thank you.