i came across a question today about the distannce between two parallel lines in 2D and i was wondering

if i am asked the distance between two parallel lines, could i find the distance between the two parallel planes that these vectors were on in 3D (if the z component was equal to 0 for both planes)?